STDquantum commited on
Commit
c59fc6a
·
verified ·
1 Parent(s): 40bc41b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -10
app.py CHANGED
@@ -83,16 +83,7 @@ def predict(prompt, style, audio_file_pth, agree):
83
  None,
84
  None,
85
  )
86
- if prompt_length > 50:
87
- text_hint += f"[ERROR] Text length limited to 50 words for this demo, please try shorter text. You can clone our open-source repo and try for your usage \n"
88
- gr.Warning(
89
- "Text length limited to 50 words for this demo, please try shorter text. You can clone our open-source repo for your usage"
90
- )
91
- return (
92
- text_hint,
93
- None,
94
- None,
95
- )
96
 
97
  save_path = f'{output_dir}/output.wav'
98
  speaker_audio_base64 = audio_to_base64(speaker_wav)
 
83
  None,
84
  None,
85
  )
86
+
 
 
 
 
 
 
 
 
 
87
 
88
  save_path = f'{output_dir}/output.wav'
89
  speaker_audio_base64 = audio_to_base64(speaker_wav)