mrfakename commited on
Commit
d92bd43
1 Parent(s): 4fd0fc1

Sync from GitHub repo

Browse files

This Space is synced from the GitHub repo: https://github.com/SWivid/F5-TTS. Please submit contributions to the Space there

Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -339,9 +339,7 @@ with gr.Blocks() as app_emotional:
339
  return [speech_type_count] + row_updates
340
 
341
  add_speech_type_btn.click(
342
- add_speech_type_fn,
343
- inputs=speech_type_count,
344
- outputs=[speech_type_count] + speech_type_rows
345
  )
346
 
347
  # Function to delete a speech type
@@ -365,9 +363,7 @@ with gr.Blocks() as app_emotional:
365
  for i, delete_btn in enumerate(speech_type_delete_btns):
366
  delete_fn = make_delete_speech_type_fn(i)
367
  delete_btn.click(
368
- delete_fn,
369
- inputs=speech_type_count,
370
- outputs=[speech_type_count] + speech_type_rows
371
  )
372
 
373
  # Text input for the prompt
@@ -451,7 +447,11 @@ with gr.Blocks() as app_emotional:
451
  regular_audio,
452
  regular_ref_text,
453
  gen_text_input_emotional,
454
- ] + speech_type_names + speech_type_audios + speech_type_ref_texts + [
 
 
 
 
455
  model_choice_emotional,
456
  remove_silence_emotional,
457
  ],
 
339
  return [speech_type_count] + row_updates
340
 
341
  add_speech_type_btn.click(
342
+ add_speech_type_fn, inputs=speech_type_count, outputs=[speech_type_count] + speech_type_rows
 
 
343
  )
344
 
345
  # Function to delete a speech type
 
363
  for i, delete_btn in enumerate(speech_type_delete_btns):
364
  delete_fn = make_delete_speech_type_fn(i)
365
  delete_btn.click(
366
+ delete_fn, inputs=speech_type_count, outputs=[speech_type_count] + speech_type_rows
 
 
367
  )
368
 
369
  # Text input for the prompt
 
447
  regular_audio,
448
  regular_ref_text,
449
  gen_text_input_emotional,
450
+ ]
451
+ + speech_type_names
452
+ + speech_type_audios
453
+ + speech_type_ref_texts
454
+ + [
455
  model_choice_emotional,
456
  remove_silence_emotional,
457
  ],