anumaurya114exp commited on
Commit
a6c6736
·
1 Parent(s): 9fbd3bb
Files changed (1) hide show
  1. app.py +2 -1
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=[downloadableFile["url"]])
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