LAP-DEV commited on
Commit
8c424f1
·
verified ·
1 Parent(s): 218cb1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -393,15 +393,15 @@ class App:
393
  @staticmethod
394
  def update_dataframe(value_cb_timestamp_preview,value_cb_diarize,value_input_multi):
395
  if value_cb_timestamp_preview==True and value_cb_diarize==True:
396
- return gr.Dataframe(headers=["Time","Speaker","Text"],column_widths=["10%","15%","70%"],datatype=["str","str","markdown"])
397
  elif value_cb_timestamp_preview==True and value_cb_diarize==False:
398
- return gr.Dataframe(headers=["Time","Text"],column_widths=["10%","85%"],datatype=["str","markdown"])
399
  elif value_cb_timestamp_preview==False and value_cb_diarize==True:
400
- return gr.Dataframe(headers=["Speaker","Text"],column_widths=["15%","80%"],datatype=["str","markdown"])
401
  elif value_cb_timestamp_preview==False and value_cb_diarize==False:
402
- return gr.Dataframe(headers=["Text"],column_widths=["95%"],datatype=["markdown"])
403
  else:
404
- return gr.Dataframe(headers=["Text"],column_widths=["95%"],datatype=["markdown"])
405
 
406
  # Create the parser for command-line arguments
407
  parser = argparse.ArgumentParser()
 
393
  @staticmethod
394
  def update_dataframe(value_cb_timestamp_preview,value_cb_diarize,value_input_multi):
395
  if value_cb_timestamp_preview==True and value_cb_diarize==True:
396
+ return gr.Dataframe(headers=["Time","Speaker","Text","Download"],column_widths=["10%","15%","50%","20%"],datatype=["str","str","markdown","html"])
397
  elif value_cb_timestamp_preview==True and value_cb_diarize==False:
398
+ return gr.Dataframe(headers=["Time","Text","Download"],column_widths=["10%","65%","20%"],datatype=["str","markdown","html"])
399
  elif value_cb_timestamp_preview==False and value_cb_diarize==True:
400
+ return gr.Dataframe(headers=["Speaker","Text","Download"],column_widths=["15%","60%","20%"],datatype=["str","markdown","html"])
401
  elif value_cb_timestamp_preview==False and value_cb_diarize==False:
402
+ return gr.Dataframe(headers=["Text","Download"],column_widths=["75%","20%"],datatype=["markdown","html"])
403
  else:
404
+ return gr.Dataframe(headers=["Text","Download"],column_widths=["75%","20%"],datatype=["markdown","html"])
405
 
406
  # Create the parser for command-line arguments
407
  parser = argparse.ArgumentParser()