raj999 commited on
Commit
3e39bdd
·
verified ·
1 Parent(s): b6d84ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -84,7 +84,10 @@ with demo:
84
  # upload_button = gr.Button("Upload Documents")
85
  with gr.Row():
86
  u = gr.UploadButton("Upload a file", file_count="single")
87
- u.upload(upload_file, u, [u, d])
 
 
 
88
 
89
 
90
  with gr.Row():
 
84
  # upload_button = gr.Button("Upload Documents")
85
  with gr.Row():
86
  u = gr.UploadButton("Upload a file", file_count="single")
87
+ d = gr.DownloadButton("Download the file", visible=False)
88
+
89
+ u.upload(upload_file, u, [u, d])
90
+ d.click(download_file, None, [u, d])
91
 
92
 
93
  with gr.Row():