Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
25ea338
1
Parent(s):
21e0ee8
update gradio cached examples
Browse files- tts/gradio_api.py +1 -1
tts/gradio_api.py
CHANGED
|
@@ -39,7 +39,7 @@ def model_worker(input_queue, output_queue, device_id):
|
|
| 39 |
|
| 40 |
if inp_npy_path is None:
|
| 41 |
raise gr.Error("Please provide .npy file")
|
| 42 |
-
if (inp_audio_path[:-4] != inp_npy_path[:-4]):
|
| 43 |
raise gr.Error(".npy and .wav mismatch")
|
| 44 |
if len(inp_text) > 200:
|
| 45 |
raise gr.Error("input text is too long")
|
|
|
|
| 39 |
|
| 40 |
if inp_npy_path is None:
|
| 41 |
raise gr.Error("Please provide .npy file")
|
| 42 |
+
if (inp_audio_path.split('/')[-1][:-4] != inp_npy_path.split('/')[-1][:-4]):
|
| 43 |
raise gr.Error(".npy and .wav mismatch")
|
| 44 |
if len(inp_text) > 200:
|
| 45 |
raise gr.Error("input text is too long")
|