LAP-DEV commited on
Commit
664b61f
·
verified ·
1 Parent(s): f53069c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -393,11 +393,11 @@ 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%","10%","75%"],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=["10%","85%"],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:
 
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: