wasmdashai commited on
Commit
76a41f5
·
verified ·
1 Parent(s): 6804d36

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,7 +1,10 @@
1
  import gradio as gr
2
 
3
  def download_file(file_path):
4
- return file_path
 
 
 
5
 
6
  interface = gr.Interface(
7
  fn=download_file,
 
1
  import gradio as gr
2
 
3
  def download_file(file_path):
4
+ filename=f"wasmdashai/dowload_file/blob/main/{file_path}"
5
+ with open(filename, 'w') as f:
6
+ f.write("This is a sample file created by Gradio.")
7
+ return filename
8
 
9
  interface = gr.Interface(
10
  fn=download_file,