Update app.py
Browse files
app.py
CHANGED
|
@@ -400,13 +400,13 @@ class App:
|
|
| 400 |
html_code = ""
|
| 401 |
for file_to_dl in list_files:
|
| 402 |
if html_code != "": html_code += " "
|
| 403 |
-
|
| 404 |
temp =[["test1",html_code],["test2",html_code]]
|
| 405 |
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
|
| 411 |
return gr.Update(headers=["Text","Download"],column_widths=["75%","20%"],datatype=["markdown","html"],value=temp)
|
| 412 |
|
|
|
|
| 400 |
html_code = ""
|
| 401 |
for file_to_dl in list_files:
|
| 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,temp],[2,temp]]
|
| 408 |
+
updated_data = {"headers": new_headers, "data": new_data_rows}
|
| 409 |
+
return gr.update(value=updated_data)
|
| 410 |
|
| 411 |
return gr.Update(headers=["Text","Download"],column_widths=["75%","20%"],datatype=["markdown","html"],value=temp)
|
| 412 |
|