Usually3 commited on
Commit
ff19dee
·
1 Parent(s): 1088e99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -44,10 +44,8 @@ def toggle(choice):
44
  return gr.update(visible=False, value=None), gr.update(visible=True, value=None)
45
 
46
  def handle_language_change(choice):
47
- if choice == "zh-CN" or choice == "de" or choice == "es":
48
- return gr.update(visible=False), gr.update(visible=False), gr.update(visible=False)
49
- else:
50
- return gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
51
 
52
  warming_text = """Please note that Chinese, German, and Spanish are currently not supported for voice cloning."""
53
 
 
44
  return gr.update(visible=False, value=None), gr.update(visible=True, value=None)
45
 
46
  def handle_language_change(choice):
47
+ if choice == "zh-CN" or choice == "de" or choice == "es" or choice fr-fr or choice pt-br or en:
48
+ return gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
 
 
49
 
50
  warming_text = """Please note that Chinese, German, and Spanish are currently not supported for voice cloning."""
51