Spaces:
Runtime error
Runtime error
Commit ·
a6c6736
1
Parent(s): 9fbd3bb
bug fix
Browse files
app.py
CHANGED
|
@@ -337,8 +337,9 @@ with gr.Blocks() as demo:
|
|
| 337 |
downloadableFiles = getAllLogFilesUrls()
|
| 338 |
buttons = []
|
| 339 |
for downloadableFile in downloadableFiles:
|
|
|
|
| 340 |
button = gr.Button(f"Download {downloadableFile['name']}")
|
| 341 |
-
button.click(lambda url: gr.run_js(f"window.open('{url}', '_blank')"), inputs=
|
| 342 |
buttons.append(button)
|
| 343 |
|
| 344 |
|
|
|
|
| 337 |
downloadableFiles = getAllLogFilesUrls()
|
| 338 |
buttons = []
|
| 339 |
for downloadableFile in downloadableFiles:
|
| 340 |
+
text_input = gr.Textbox(label = 'file url', value= downloadableFile["url"])
|
| 341 |
button = gr.Button(f"Download {downloadableFile['name']}")
|
| 342 |
+
button.click(lambda url: gr.run_js(f"window.open('{url}', '_blank')"), inputs=text_input)
|
| 343 |
buttons.append(button)
|
| 344 |
|
| 345 |
|