remove custom selector
Browse files
app.py
CHANGED
@@ -785,47 +785,6 @@ If you're having issues, try converting your reference audio to WAV or MP3, clip
|
|
785 |
with open(last_used_custom, "w") as f:
|
786 |
f.write(f"{custom_ckpt_path},{custom_vocab_path}")
|
787 |
|
788 |
-
with gr.Row():
|
789 |
-
if not USING_SPACES:
|
790 |
-
choose_tts_model = gr.Radio(
|
791 |
-
choices=[DEFAULT_TTS_MODEL, "E2-TTS", "Custom"], label="Choose TTS Model", value=DEFAULT_TTS_MODEL
|
792 |
-
)
|
793 |
-
else:
|
794 |
-
choose_tts_model = gr.Radio(
|
795 |
-
choices=[DEFAULT_TTS_MODEL, "E2-TTS"], label="Choose TTS Model", value=DEFAULT_TTS_MODEL
|
796 |
-
)
|
797 |
-
custom_ckpt_path = gr.Dropdown(
|
798 |
-
choices=["hf://SWivid/F5-TTS/F5TTS_Base/model_1200000.safetensors"],
|
799 |
-
value=load_last_used_custom()[0],
|
800 |
-
allow_custom_value=True,
|
801 |
-
label="MODEL CKPT: local_path | hf://user_id/repo_id/model_ckpt",
|
802 |
-
visible=False,
|
803 |
-
)
|
804 |
-
custom_vocab_path = gr.Dropdown(
|
805 |
-
choices=["hf://SWivid/F5-TTS/F5TTS_Base/vocab.txt"],
|
806 |
-
value=load_last_used_custom()[1],
|
807 |
-
allow_custom_value=True,
|
808 |
-
label="VOCAB FILE: local_path | hf://user_id/repo_id/vocab_file",
|
809 |
-
visible=False,
|
810 |
-
)
|
811 |
-
|
812 |
-
choose_tts_model.change(
|
813 |
-
switch_tts_model,
|
814 |
-
inputs=[choose_tts_model],
|
815 |
-
outputs=[custom_ckpt_path, custom_vocab_path],
|
816 |
-
show_progress="hidden",
|
817 |
-
)
|
818 |
-
custom_ckpt_path.change(
|
819 |
-
set_custom_model,
|
820 |
-
inputs=[custom_ckpt_path, custom_vocab_path],
|
821 |
-
show_progress="hidden",
|
822 |
-
)
|
823 |
-
custom_vocab_path.change(
|
824 |
-
set_custom_model,
|
825 |
-
inputs=[custom_ckpt_path, custom_vocab_path],
|
826 |
-
show_progress="hidden",
|
827 |
-
)
|
828 |
-
|
829 |
gr.TabbedInterface(
|
830 |
[app_tts, app_multistyle, app_chat, app_credits],
|
831 |
["Basic-TTS", "Multi-Speech", "Voice-Chat", "Credits"],
|
|
|
785 |
with open(last_used_custom, "w") as f:
|
786 |
f.write(f"{custom_ckpt_path},{custom_vocab_path}")
|
787 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
788 |
gr.TabbedInterface(
|
789 |
[app_tts, app_multistyle, app_chat, app_credits],
|
790 |
["Basic-TTS", "Multi-Speech", "Voice-Chat", "Credits"],
|