Update app.py
Browse files
app.py
CHANGED
@@ -392,6 +392,19 @@ class App:
|
|
392 |
|
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:
|
|
|
392 |
|
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"],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"],datatype=["str","markdown","html"])
|
399 |
+
elif value_cb_timestamp_preview==False and value_cb_diarize==True:
|
400 |
+
return gr.Dataframe(headers=["Speaker","Text","Download"],datatype=["str","markdown","html"])
|
401 |
+
elif value_cb_timestamp_preview==False and value_cb_diarize==False:
|
402 |
+
return gr.Dataframe(headers=["Text"],datatype=["markdown","html","Download"])
|
403 |
+
else:
|
404 |
+
return gr.Dataframe(headers=["Text"],datatype=["markdown","html","Download"])
|
405 |
+
|
406 |
+
@staticmethod
|
407 |
+
def update_dataframe_backup(value_cb_timestamp_preview,value_cb_diarize,value_input_multi):
|
408 |
if value_cb_timestamp_preview==True and value_cb_diarize==True:
|
409 |
return gr.Dataframe(headers=["Time","Speaker","Text"],column_widths=["10%","15%","70%"],datatype=["str","str","markdown"])
|
410 |
elif value_cb_timestamp_preview==True and value_cb_diarize==False:
|