Spaces:
Running
Running
jhj0517
commited on
Commit
•
5a1d3d2
1
Parent(s):
864acb3
fix bug
Browse files
app.py
CHANGED
@@ -33,9 +33,9 @@ class App:
|
|
33 |
def on_change_models(model_size: str):
|
34 |
translatable_model = ["large", "large-v1", "large-v2", "large-v3"]
|
35 |
if model_size not in translatable_model:
|
36 |
-
return gr.Checkbox
|
37 |
else:
|
38 |
-
return gr.Checkbox
|
39 |
|
40 |
def launch(self):
|
41 |
with self.app:
|
|
|
33 |
def on_change_models(model_size: str):
|
34 |
translatable_model = ["large", "large-v1", "large-v2", "large-v3"]
|
35 |
if model_size not in translatable_model:
|
36 |
+
return gr.Checkbox(visible=False, value=False, interactive=False)
|
37 |
else:
|
38 |
+
return gr.Checkbox(visible=True, value=False, label="Translate to English?", interactive=True)
|
39 |
|
40 |
def launch(self):
|
41 |
with self.app:
|