wasmdashai commited on
Commit
c868f53
·
verified ·
1 Parent(s): 39a68cd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
 
3
  def download_file(file_path):
4
- filename=f"wasmdashai/dowload_file/ccc.txt"
5
  with open(filename, 'w') as f:
6
  f.write("This is a sample file created by Gradio.")
7
  return filename
@@ -9,7 +9,7 @@ def download_file(file_path):
9
  interface = gr.Interface(
10
  fn=download_file,
11
  inputs=gr.File(label="Select file to download"),
12
- outputs=gr.File(label="Download file"),
13
  title="Download File",
14
  description="Select a file from your computer to download."
15
  )
 
1
  import gradio as gr
2
 
3
  def download_file(file_path):
4
+ filename=f"/dowload_file/ccc.txt"
5
  with open(filename, 'w') as f:
6
  f.write("This is a sample file created by Gradio.")
7
  return filename
 
9
  interface = gr.Interface(
10
  fn=download_file,
11
  inputs=gr.File(label="Select file to download"),
12
+ outputs=gr.Label("dd"),
13
  title="Download File",
14
  description="Select a file from your computer to download."
15
  )