Usually3 commited on
Commit
8859e88
·
1 Parent(s): 67d3f5e

Update app.py

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