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