Spaces:
Runtime error
Runtime error
Commit
·
5791344
1
Parent(s):
cd009bb
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,9 +18,6 @@ import torch
|
|
| 18 |
import librosa
|
| 19 |
import util
|
| 20 |
|
| 21 |
-
from config import Config
|
| 22 |
-
config = Config()
|
| 23 |
-
|
| 24 |
import matplotlib.pyplot as plt
|
| 25 |
from PIL import Image, ImageDraw, ImageFont
|
| 26 |
from moviepy.editor import *
|
|
@@ -95,7 +92,7 @@ for model_name in config_json.get('models'):
|
|
| 95 |
net_g.eval().to(device)
|
| 96 |
net_g = net_g.half() if util.is_half(device) else net_g.float()
|
| 97 |
|
| 98 |
-
vc = VC(tgt_sr,
|
| 99 |
|
| 100 |
loaded_models.append(dict(
|
| 101 |
name=model_name,
|
|
|
|
| 18 |
import librosa
|
| 19 |
import util
|
| 20 |
|
|
|
|
|
|
|
|
|
|
| 21 |
import matplotlib.pyplot as plt
|
| 22 |
from PIL import Image, ImageDraw, ImageFont
|
| 23 |
from moviepy.editor import *
|
|
|
|
| 92 |
net_g.eval().to(device)
|
| 93 |
net_g = net_g.half() if util.is_half(device) else net_g.float()
|
| 94 |
|
| 95 |
+
vc = VC(tgt_sr, device)
|
| 96 |
|
| 97 |
loaded_models.append(dict(
|
| 98 |
name=model_name,
|