Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,14 +7,6 @@ import torch
|
|
7 |
|
8 |
cpu_param = "--cpu" if not torch.cuda.is_available() else ""
|
9 |
|
10 |
-
if (not os.path.exists("synpretrained.pt")):
|
11 |
-
gdown.download("https://drive.google.com/u/0/uc?id=1EqFMIbvxffxtjiVrtykroF6_mUh-5Z3s&export=download&confirm=t",
|
12 |
-
"synpretrained.pt", quiet=False)
|
13 |
-
gdown.download("https://drive.google.com/uc?export=download&id=1q8mEGwCkFy23KZsinbuvdKAQLqNKbYf1",
|
14 |
-
"encpretrained.pt", quiet=False)
|
15 |
-
gdown.download("https://drive.google.com/uc?export=download&id=1cf2NO6FtI0jDuy8AV3Xgn6leO6dHjIgu",
|
16 |
-
"vocpretrained.pt", quiet=False)
|
17 |
-
|
18 |
|
19 |
def inference(audio_path, text, mic_path=None):
|
20 |
if mic_path:
|
|
|
7 |
|
8 |
cpu_param = "--cpu" if not torch.cuda.is_available() else ""
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
def inference(audio_path, text, mic_path=None):
|
12 |
if mic_path:
|