Update app.py
Browse files
app.py
CHANGED
@@ -341,8 +341,7 @@ class App:
|
|
341 |
# btn_openfolder.click(fn=lambda: self.open_folder("outputs"), inputs=None, outputs=None)
|
342 |
|
343 |
input_multi.change(fn=self.update_viewer,inputs=input_multi,outputs=[input_file_audio,input_file_video,input_file_multi])
|
344 |
-
cb_timestamp_preview.change(fn=self.update_dataframe,inputs=
|
345 |
-
cb_diarize.change(fn=self.update_dataframe,inputs=[cb_timestamp_preview,cb_diarize],outputs=tb_indicator)
|
346 |
|
347 |
with gr.TabItem("Device info"): # tab2
|
348 |
with gr.Column():
|
@@ -389,7 +388,8 @@ class App:
|
|
389 |
return gr.update(visible=False), gr.update(visible=False), gr.update(visible=True)
|
390 |
|
391 |
@staticmethod
|
392 |
-
def update_dataframe(value_cb_timestamp_preview
|
|
|
393 |
if value_cb_timestamp_preview==True and value_cb_diarize==True:
|
394 |
return gr.Dataframe(headers=["Time","Speaker","Text"], column_widths=["15%","15%","70%"])
|
395 |
elif value_cb_timestamp_preview==True and value_cb_diarize==False:
|
|
|
341 |
# btn_openfolder.click(fn=lambda: self.open_folder("outputs"), inputs=None, outputs=None)
|
342 |
|
343 |
input_multi.change(fn=self.update_viewer,inputs=input_multi,outputs=[input_file_audio,input_file_video,input_file_multi])
|
344 |
+
cb_timestamp_preview.change(fn=self.update_dataframe,inputs=cb_timestamp_preview,outputs=tb_indicator)
|
|
|
345 |
|
346 |
with gr.TabItem("Device info"): # tab2
|
347 |
with gr.Column():
|
|
|
388 |
return gr.update(visible=False), gr.update(visible=False), gr.update(visible=True)
|
389 |
|
390 |
@staticmethod
|
391 |
+
def update_dataframe(value_cb_timestamp_preview):
|
392 |
+
value_cb_diarize = False
|
393 |
if value_cb_timestamp_preview==True and value_cb_diarize==True:
|
394 |
return gr.Dataframe(headers=["Time","Speaker","Text"], column_widths=["15%","15%","70%"])
|
395 |
elif value_cb_timestamp_preview==True and value_cb_diarize==False:
|