Update app.py
Browse files
app.py
CHANGED
@@ -124,7 +124,7 @@ def infer(prompt, input_wav_file, clean_audio, hidden_numpy_audio):
|
|
124 |
NEW INFERENCE:
|
125 |
βββββββ
|
126 |
""")
|
127 |
-
if prompt
|
128 |
gr.Warning("Do not forget to provide a tts prompt !")
|
129 |
|
130 |
if clean_audio is True :
|
@@ -205,7 +205,7 @@ def infer_from_c(prompt, c_name):
|
|
205 |
NEW INFERENCE:
|
206 |
βββββββ
|
207 |
""")
|
208 |
-
if prompt
|
209 |
gr.Warning("Do not forget to provide a tts prompt !")
|
210 |
|
211 |
print(f"USING VOICE LIBRARY: {c_name}")
|
|
|
124 |
NEW INFERENCE:
|
125 |
βββββββ
|
126 |
""")
|
127 |
+
if prompt == "":
|
128 |
gr.Warning("Do not forget to provide a tts prompt !")
|
129 |
|
130 |
if clean_audio is True :
|
|
|
205 |
NEW INFERENCE:
|
206 |
βββββββ
|
207 |
""")
|
208 |
+
if prompt == "":
|
209 |
gr.Warning("Do not forget to provide a tts prompt !")
|
210 |
|
211 |
print(f"USING VOICE LIBRARY: {c_name}")
|