Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,9 @@ def toggle(choice):
|
|
45 |
|
46 |
def handle_language_change(choice):
|
47 |
|
48 |
-
if choice == "
|
|
|
|
|
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."""
|