Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
a1e19e1
1
Parent(s):
1fe4225
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,11 +2,9 @@ import gradio as gr
|
|
| 2 |
import os
|
| 3 |
import shlex
|
| 4 |
|
| 5 |
-
os.system('
|
| 6 |
-
os.system('
|
| 7 |
-
os.system('
|
| 8 |
-
os.system('wget https://github.com/blue-fish/Real-Time-Voice-Cloning/releases/download/v1.0/pretrained.zip')
|
| 9 |
-
os.system('unzip pretrained.zip')
|
| 10 |
|
| 11 |
def inference(audio, text):
|
| 12 |
os.system("python demo_cli.py --audio_path "+audio.name+" --text "+shlex.quote(text.strip()))
|
|
|
|
| 2 |
import os
|
| 3 |
import shlex
|
| 4 |
|
| 5 |
+
os.system('wget https://www.dropbox.com/s/luro5o8kjotkn70/pretrained.pt -P synthesizer/saved_models/pretrained')
|
| 6 |
+
os.system('wget https://www.dropbox.com/s/dv0ymnlqillecfw/pretrained.pt -P encoder/saved_models')
|
| 7 |
+
os.system('wget https://www.dropbox.com/s/aiym2qfv7087bsc/pretrained.pt -P vocoder/saved_models/pretrained')
|
|
|
|
|
|
|
| 8 |
|
| 9 |
def inference(audio, text):
|
| 10 |
os.system("python demo_cli.py --audio_path "+audio.name+" --text "+shlex.quote(text.strip()))
|