Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
def download_file(file_path):
|
4 |
-
filename=f"
|
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.
|
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 |
)
|