Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
9898d4b
1
Parent(s):
4400553
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,9 @@ import gradio as gr
|
|
| 2 |
import os
|
| 3 |
import shlex
|
| 4 |
|
|
|
|
|
|
|
|
|
|
| 5 |
def inference(audio, text):
|
| 6 |
os.system("python demo_cli.py --audio_path "+audio.name+" --text "+shlex.quote(text.strip()))
|
| 7 |
return 'demo_output_1.wav'
|
|
|
|
| 2 |
import os
|
| 3 |
import shlex
|
| 4 |
|
| 5 |
+
os.system('wget https://github.com/blue-fish/Real-Time-Voice-Cloning/releases/download/v1.0/pretrained.zip')
|
| 6 |
+
os.system('unzip pretrained.zip')
|
| 7 |
+
|
| 8 |
def inference(audio, text):
|
| 9 |
os.system("python demo_cli.py --audio_path "+audio.name+" --text "+shlex.quote(text.strip()))
|
| 10 |
return 'demo_output_1.wav'
|