Update app.py
Browse files
app.py
CHANGED
@@ -390,19 +390,6 @@ class App:
|
|
390 |
else:
|
391 |
return gr.update(visible=False), gr.update(visible=False), gr.update(visible=True)
|
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:
|
|
|
390 |
else:
|
391 |
return gr.update(visible=False), gr.update(visible=False), gr.update(visible=True)
|
392 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
393 |
@staticmethod
|
394 |
def update_dataframe_backup(value_cb_timestamp_preview,value_cb_diarize,value_input_multi):
|
395 |
if value_cb_timestamp_preview==True and value_cb_diarize==True:
|