Update app.py
Browse files
app.py
CHANGED
@@ -335,7 +335,8 @@ class App:
|
|
335 |
outputs=[tb_indicator, files_subtitles, tb_info])
|
336 |
# btn_openfolder.click(fn=lambda: self.open_folder("outputs"), inputs=None, outputs=None)
|
337 |
|
338 |
-
input_multi.change(fn=self.update_visibility,
|
|
|
339 |
|
340 |
with gr.TabItem("Device info"): # tab2
|
341 |
with gr.Column():
|
@@ -373,7 +374,7 @@ class App:
|
|
373 |
return gr.Checkbox(visible=True, value=False, label="Translate to English", interactive=True)
|
374 |
|
375 |
@staticmethod
|
376 |
-
def update_visibility(
|
377 |
if radio == "Single":
|
378 |
input_file.visible = True
|
379 |
input_file_multi.visible = False
|
|
|
335 |
outputs=[tb_indicator, files_subtitles, tb_info])
|
336 |
# btn_openfolder.click(fn=lambda: self.open_folder("outputs"), inputs=None, outputs=None)
|
337 |
|
338 |
+
input_multi.change(fn=self.update_visibility,
|
339 |
+
radio_text=input_multi)
|
340 |
|
341 |
with gr.TabItem("Device info"): # tab2
|
342 |
with gr.Column():
|
|
|
374 |
return gr.Checkbox(visible=True, value=False, label="Translate to English", interactive=True)
|
375 |
|
376 |
@staticmethod
|
377 |
+
def update_visibility(radio_text: str):
|
378 |
if radio == "Single":
|
379 |
input_file.visible = True
|
380 |
input_file_multi.visible = False
|