Update app.py
Browse files
app.py
CHANGED
@@ -327,7 +327,8 @@ class App:
|
|
327 |
with gr.Row():
|
328 |
with gr.Column(scale=4):
|
329 |
#tb_indicator = gr.Textbox(label="Output preview (Always review output generated by AI models)", show_copy_button=True, show_label=True)
|
330 |
-
tb_indicator = gr.Dataframe(label="Output preview (Always review output generated by AI models)",
|
|
|
331 |
with gr.Column(scale=1):
|
332 |
tb_info = gr.Textbox(label="Output info", interactive=False, show_copy_button=True)
|
333 |
files_subtitles = gr.Files(label="Output data", interactive=False, file_count="multiple")
|
@@ -395,9 +396,9 @@ class App:
|
|
395 |
elif value_cb_timestamp_preview==False and value_cb_diarize==True:
|
396 |
return gr.Dataframe(headers=["Speaker","Text"], column_widths=["15%","85%"])
|
397 |
elif value_cb_timestamp_preview==False and value_cb_diarize==False:
|
398 |
-
return gr.Dataframe(headers=[Text"], column_widths=["100%"])
|
399 |
else:
|
400 |
-
return gr.Dataframe(headers=[Text"], column_widths=["100%"])
|
401 |
|
402 |
# Create the parser for command-line arguments
|
403 |
parser = argparse.ArgumentParser()
|
|
|
327 |
with gr.Row():
|
328 |
with gr.Column(scale=4):
|
329 |
#tb_indicator = gr.Textbox(label="Output preview (Always review output generated by AI models)", show_copy_button=True, show_label=True)
|
330 |
+
tb_indicator = gr.Dataframe(label="Output preview (Always review output generated by AI models)", show_search="search", show_label=True, show_copy_button=True, show_fullscreen_button=True, interactive=False)
|
331 |
+
tb_indicator = self.update_dataframe(cb_timestamp_preview,cb_diarize) #Show needed columns
|
332 |
with gr.Column(scale=1):
|
333 |
tb_info = gr.Textbox(label="Output info", interactive=False, show_copy_button=True)
|
334 |
files_subtitles = gr.Files(label="Output data", interactive=False, file_count="multiple")
|
|
|
396 |
elif value_cb_timestamp_preview==False and value_cb_diarize==True:
|
397 |
return gr.Dataframe(headers=["Speaker","Text"], column_widths=["15%","85%"])
|
398 |
elif value_cb_timestamp_preview==False and value_cb_diarize==False:
|
399 |
+
return gr.Dataframe(headers=["Text"], column_widths=["100%"])
|
400 |
else:
|
401 |
+
return gr.Dataframe(headers=["Text"], column_widths=["100%"])
|
402 |
|
403 |
# Create the parser for command-line arguments
|
404 |
parser = argparse.ArgumentParser()
|