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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -72,6 +72,9 @@ def upload_file(filepath):
72
  name = Path(filepath).name
73
  return [gr.UploadButton(visible=False), gr.DownloadButton(label=f"Download {name}", value=filepath, visible=True)]
74
 
 
 
 
75
  # Gradio interface setup
76
  demo = gr.Blocks()
77
 
 
72
  name = Path(filepath).name
73
  return [gr.UploadButton(visible=False), gr.DownloadButton(label=f"Download {name}", value=filepath, visible=True)]
74
 
75
+ def download_file():
76
+ return [gr.UploadButton(visible=True), gr.DownloadButton(visible=False)]
77
+
78
  # Gradio interface setup
79
  demo = gr.Blocks()
80