Spaces:
Sleeping
Sleeping
Commit
·
7d50d0b
1
Parent(s):
859b044
update gradio cached examples
Browse files- tts/gradio_api.py +1 -1
tts/gradio_api.py
CHANGED
|
@@ -37,7 +37,7 @@ 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 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")
|
|
|
|
| 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 is None:
|
| 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")
|