Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,9 +48,9 @@ for directory in ["/home/user/app", "/data"]:
|
|
| 48 |
# The Gradio app
|
| 49 |
##############################################################
|
| 50 |
|
| 51 |
-
with gr.Blocks() as demo:
|
| 52 |
-
|
| 53 |
-
gr.FileExplorer(label="Working directory")
|
| 54 |
-
gr.FileExplorer(root="/home/user/app", label="Persistent storage")
|
| 55 |
|
| 56 |
demo.launch()
|
|
|
|
| 48 |
# The Gradio app
|
| 49 |
##############################################################
|
| 50 |
|
| 51 |
+
#with gr.Blocks() as demo:
|
| 52 |
+
demo=[gr.Interface(fn=saveFile, inputs="file", outputs="text"),
|
| 53 |
+
gr.FileExplorer(label="Working directory"),
|
| 54 |
+
gr.FileExplorer(root="/home/user/app", label="Persistent storage")]
|
| 55 |
|
| 56 |
demo.launch()
|