Spaces:
Running
on
Zero
Running
on
Zero
Update app.py (#1)
Browse files- Update app.py (a7e2de7620e8e4fb08307c00baee22b18dbf85bc)
Co-authored-by: Anthony Guijarro <[email protected]>
app.py
CHANGED
|
@@ -73,7 +73,7 @@ def infer(sample_audio_path, target_text, progress=gr.Progress()):
|
|
| 73 |
if len(target_text) == 0:
|
| 74 |
return None
|
| 75 |
elif len(target_text) > 300:
|
| 76 |
-
gr.
|
| 77 |
target_text = target_text[:300]
|
| 78 |
|
| 79 |
input_text = prompt_text + ' ' + target_text
|
|
|
|
| 73 |
if len(target_text) == 0:
|
| 74 |
return None
|
| 75 |
elif len(target_text) > 300:
|
| 76 |
+
gr.Warning("Text is too long. Please keep it under 300 characters.")
|
| 77 |
target_text = target_text[:300]
|
| 78 |
|
| 79 |
input_text = prompt_text + ' ' + target_text
|