Update webui.py
Browse files
webui.py
CHANGED
|
@@ -23,7 +23,7 @@ tts = IndexTTS(model_dir="checkpoints", cfg_path="checkpoints/config.yaml")
|
|
| 23 |
os.makedirs("outputs/tasks",exist_ok=True)
|
| 24 |
os.makedirs("prompts",exist_ok=True)
|
| 25 |
|
| 26 |
-
@spaces
|
| 27 |
def infer(voice, text,output_path=None):
|
| 28 |
if not tts:
|
| 29 |
raise Exception("Model not loaded")
|
|
|
|
| 23 |
os.makedirs("outputs/tasks",exist_ok=True)
|
| 24 |
os.makedirs("prompts",exist_ok=True)
|
| 25 |
|
| 26 |
+
@spaces
|
| 27 |
def infer(voice, text,output_path=None):
|
| 28 |
if not tts:
|
| 29 |
raise Exception("Model not loaded")
|