mrfakename commited on
Commit
ce6781a
1 Parent(s): 0aa98e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -80,8 +80,6 @@ E2TTS_ema_model, E2TTS_base_model = load_model("E2TTS_Base", UNetT, E2TTS_model_
80
  @spaces.GPU
81
  def infer(ref_audio_orig, ref_text, gen_text, exp_name, remove_silence, progress = gr.Progress()):
82
  print(gen_text)
83
- if len(gen_text) > 200:
84
- raise gr.Error("Please keep your text under 200 chars.")
85
  gr.Info("Converting audio...")
86
  with tempfile.NamedTemporaryFile(delete=False, suffix=".wav") as f:
87
  aseg = AudioSegment.from_file(ref_audio_orig)
@@ -204,7 +202,7 @@ Long-form/batched inference + speech editing is coming soon!
204
  """)
205
 
206
  ref_audio_input = gr.Audio(label="Reference Audio", type="filepath")
207
- gen_text_input = gr.Textbox(label="Text to Generate (max 200 chars.)", lines=4)
208
  model_choice = gr.Radio(choices=["F5-TTS", "E2-TTS"], label="Choose TTS Model", value="F5-TTS")
209
  generate_btn = gr.Button("Synthesize", variant="primary")
210
  with gr.Accordion("Advanced Settings", open=False):
 
80
  @spaces.GPU
81
  def infer(ref_audio_orig, ref_text, gen_text, exp_name, remove_silence, progress = gr.Progress()):
82
  print(gen_text)
 
 
83
  gr.Info("Converting audio...")
84
  with tempfile.NamedTemporaryFile(delete=False, suffix=".wav") as f:
85
  aseg = AudioSegment.from_file(ref_audio_orig)
 
202
  """)
203
 
204
  ref_audio_input = gr.Audio(label="Reference Audio", type="filepath")
205
+ gen_text_input = gr.Textbox(label="Text to Generate (longer text will use chunking)", lines=4)
206
  model_choice = gr.Radio(choices=["F5-TTS", "E2-TTS"], label="Choose TTS Model", value="F5-TTS")
207
  generate_btn = gr.Button("Synthesize", variant="primary")
208
  with gr.Accordion("Advanced Settings", open=False):