LAP-DEV commited on
Commit
37eacaf
·
verified ·
1 Parent(s): 336fc7f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -402,13 +402,11 @@ class App:
402
  if html_code != "": html_code += " "
403
  html_code += "<a href='"+file_to_dl+"'>test</a>"
404
  temp =[["test1",html_code],["test2",html_code]]
405
-
406
-
407
  new_headers = ["New Header 1", "New Header 2"]
408
- new_data_rows = [[1,temp],[2,temp]]
409
  updated_data = {"headers": new_headers, "data": new_data_rows}
410
  return gr.update(value=updated_data)
411
- return gr.Update(headers=["Text","Download"],column_widths=["75%","20%"],datatype=["markdown","html"],value=temp)
412
 
413
  if value_cb_timestamp_preview==True and value_cb_diarize==True:
414
  return gr.Dataframe(headers=["Time","Speaker","Text","Download"],column_widths=["10%","15%","50%","20%"],datatype=["str","str","markdown","html"])
 
402
  if html_code != "": html_code += " "
403
  html_code += "<a href='"+file_to_dl+"'>test</a>"
404
  temp =[["test1",html_code],["test2",html_code]]
405
+
 
406
  new_headers = ["New Header 1", "New Header 2"]
407
+ new_data_rows = [[1,2],[3,4]]
408
  updated_data = {"headers": new_headers, "data": new_data_rows}
409
  return gr.update(value=updated_data)
 
410
 
411
  if value_cb_timestamp_preview==True and value_cb_diarize==True:
412
  return gr.Dataframe(headers=["Time","Speaker","Text","Download"],column_widths=["10%","15%","50%","20%"],datatype=["str","str","markdown","html"])