Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
859b044
1
Parent(s):
95999a9
update gradio cached examples
Browse files- tts/gradio_api.py +2 -2
tts/gradio_api.py
CHANGED
@@ -37,8 +37,8 @@ def model_worker(input_queue, output_queue, device_id):
|
|
37 |
task = input_queue.get()
|
38 |
inp_audio_path, inp_npy_path, inp_text, infer_timestep, p_w, t_w = task
|
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:
|
|
|
37 |
task = input_queue.get()
|
38 |
inp_audio_path, inp_npy_path, inp_text, infer_timestep, p_w, t_w = task
|
39 |
|
40 |
+
if inp_npy_path is None or inp_audio_path:
|
41 |
+
raise gr.Error("Please provide .wav and .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:
|