Update app.py
Browse files340 unmodified lines34134234334434534634734840 unmodified lines389390391392393394395340 unmodified lines# btn_openfolder.click(fn=lambda: self.open_folder("outputs"), inputs=None, outputs=None)input_multi.change(fn=self.update_viewer,inputs=input_multi,outputs=[input_file_audio,input_file_video,input_file_multi])cb_timestamp_preview.change(fn=self.update_dataframe,inputs=[cb_timestamp_preview,cb_timestamp_preview],outputs=tb_indicator)cb_diarize.change(fn=self.update_dataframe,inputs=[cb_timestamp_preview,cb_diarize],outputs=tb_indicator)with gr.TabItem("Device info"): # tab2with gr.Column():40 unmodified linesreturn gr.update(visible=False), gr.update(visible=False), gr.update(visible=True)@staticmethoddef update_dataframe(value_cb_timestamp_preview,value_cb_diarize):if value_cb_timestamp_preview==True and value_cb_diarize==True:return gr.Dataframe(headers=["Time","Speaker","Text"], column_widths=["15%","15%","70%"])elif value_cb_timestamp_preview==True and value_cb_diarize==False:340 unmodified lines34134234334434534634740 unmodified lines388389390391392393394395340 unmodified lines# btn_openfolder.click(fn=lambda: self.open_folder("outputs"), inputs=None, outputs=None)input_multi.change(fn=self.update_viewer,inputs=input_multi,outputs=[input_file_audio,input_file_video,input_file_multi])cb_timestamp_preview.change(fn=self.update_dataframe,inputs=cb_timestamp_preview,outputs=tb_indicator)with gr.TabItem("Device info"): # tab2with gr.Column():40 unmodified linesreturn gr.update(visible=False), gr.update(visible=False), gr.update(visible=True)@staticmethoddef update_dataframe(value_cb_timestamp_preview):value_cb_diarize = Falseif value_cb_timestamp_preview==True and value_cb_diarize==True:return gr.Dataframe(headers=["Time","Speaker","Text"], column_widths=["15%","15%","70%"])elif value_cb_timestamp_preview==True and value_cb_diarize==False:
app.py+3-3