Update app.py
Browse files
app.py
CHANGED
@@ -335,7 +335,7 @@ 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,inputs=input_multi,outputs=[input_file
|
339 |
|
340 |
with gr.TabItem("Device info"): # tab2
|
341 |
with gr.Column():
|
@@ -373,11 +373,11 @@ class App:
|
|
373 |
return gr.Checkbox(visible=True, value=False, label="Translate to English", interactive=True)
|
374 |
|
375 |
@staticmethod
|
376 |
-
def update_visibility(radio_text
|
377 |
if radio_text == "Single":
|
378 |
-
return True, False
|
379 |
else:
|
380 |
-
|
381 |
|
382 |
# Create the parser for command-line arguments
|
383 |
parser = argparse.ArgumentParser()
|
|
|
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,inputs=input_multi,outputs=[input_file,input_file_multi])
|
339 |
|
340 |
with gr.TabItem("Device info"): # tab2
|
341 |
with gr.Column():
|
|
|
373 |
return gr.Checkbox(visible=True, value=False, label="Translate to English", interactive=True)
|
374 |
|
375 |
@staticmethod
|
376 |
+
def update_visibility(radio_text):
|
377 |
if radio_text == "Single":
|
378 |
+
return gr.update(visible=True), gr.update(visible=False)
|
379 |
else:
|
380 |
+
return gr.update(visible=False), gr.update(visible=True)
|
381 |
|
382 |
# Create the parser for command-line arguments
|
383 |
parser = argparse.ArgumentParser()
|