hritiksdlccorp commited on
Commit
82837f2
Β·
verified Β·
1 Parent(s): 55c9311

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -773,12 +773,12 @@ with gr.Blocks(theme='Kasien/ali_theme_custom') as app:
773
 
774
  default_voice_wav, default_voice_wav_words, default_language, _, default_model_name, _, default_tone_sample_path = update_model("Trump")
775
  english_models = [name for name, _ in models_by_language["English"]]
776
- chinese_models = [name for name, _ in models_by_language["δΈ­ζ–‡"]]
777
- japanese_models = [name for name, _ in models_by_language["ζ—₯本θͺž"]]
778
  with gr.Row():
779
  english_choice = gr.Radio(english_models, label="EN",value="Trump",scale=3)
780
- chinese_choice = gr.Radio(chinese_models, label="ZH",scale=2)
781
- japanese_choice = gr.Radio(japanese_models, label="JA",scale=4)
782
 
783
  plsh='''
784
  Input any text
@@ -815,8 +815,8 @@ with gr.Blocks(theme='Kasien/ali_theme_custom') as app:
815
  with gr.Row(visible=True):
816
  inp_ref = gr.Audio(label="Reference audio", type="filepath", value=default_voice_wav, scale=3)
817
  prompt_text = gr.Textbox(label="Reference text", value=default_voice_wav_words, scale=3)
818
- prompt_language = gr.Dropdown(label="Language of the reference audio", choices=["δΈ­ζ–‡", "English", "ζ—₯本θͺž"], value=default_language, scale=1,interactive=False)
819
- dummy = gr.Radio(choices=["δΈ­ζ–‡","English","ζ—₯本θͺž"],visible=False)
820
 
821
 
822
  with gr.Accordion(label="Additional generation options", open=False):
@@ -867,8 +867,6 @@ with gr.Blocks(theme='Kasien/ali_theme_custom') as app:
867
  gr.HTML('''<div align=center><img id="visitor-badge" alt="visitor badge" src="https://visitor-badge.laobi.icu/badge?page_id=Ailyth/DLMP9" /></div>''')
868
 
869
  english_choice.change(update_model, inputs=[english_choice], outputs=[inp_ref, prompt_text, prompt_language,dummy,model_name, tone_select, tone_sample])
870
- chinese_choice.change(update_model, inputs=[chinese_choice], outputs=[inp_ref, prompt_text, prompt_language, dummy,model_name, tone_select, tone_sample])
871
- japanese_choice.change(update_model, inputs=[japanese_choice], outputs=[inp_ref, prompt_text, prompt_language,dummy,model_name, tone_select, tone_sample])
872
  tone_select.change(update_tone, inputs=[model_name, tone_select], outputs=[inp_ref, prompt_text, tone_sample])
873
 
874
  main_button.click(
 
773
 
774
  default_voice_wav, default_voice_wav_words, default_language, _, default_model_name, _, default_tone_sample_path = update_model("Trump")
775
  english_models = [name for name, _ in models_by_language["English"]]
776
+
777
+
778
  with gr.Row():
779
  english_choice = gr.Radio(english_models, label="EN",value="Trump",scale=3)
780
+
781
+
782
 
783
  plsh='''
784
  Input any text
 
815
  with gr.Row(visible=True):
816
  inp_ref = gr.Audio(label="Reference audio", type="filepath", value=default_voice_wav, scale=3)
817
  prompt_text = gr.Textbox(label="Reference text", value=default_voice_wav_words, scale=3)
818
+ prompt_language = gr.Dropdown(label="Language of the reference audio", choices=["English"], value=default_language, scale=1,interactive=False)
819
+ dummy = gr.Radio(choices=["English"],visible=False)
820
 
821
 
822
  with gr.Accordion(label="Additional generation options", open=False):
 
867
  gr.HTML('''<div align=center><img id="visitor-badge" alt="visitor badge" src="https://visitor-badge.laobi.icu/badge?page_id=Ailyth/DLMP9" /></div>''')
868
 
869
  english_choice.change(update_model, inputs=[english_choice], outputs=[inp_ref, prompt_text, prompt_language,dummy,model_name, tone_select, tone_sample])
 
 
870
  tone_select.change(update_tone, inputs=[model_name, tone_select], outputs=[inp_ref, prompt_text, tone_sample])
871
 
872
  main_button.click(