Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -46,11 +46,10 @@ def saveFile(file):
|
|
46 |
return f"https://emee-nx-storage.hf.space/file=./{file_infor['path']}"
|
47 |
|
48 |
|
49 |
-
|
50 |
-
|
51 |
|
52 |
with gr.Blocks() as demo:
|
53 |
-
gr.Interface(fn=saveFile, inputs="file", outputs="text")
|
54 |
gr.FileExplorer(label="Working directory")
|
55 |
gr.FileExplorer(root="/home/user/app", label="Persistent storage")
|
56 |
|
|
|
46 |
return f"https://emee-nx-storage.hf.space/file=./{file_infor['path']}"
|
47 |
|
48 |
|
49 |
+
nxapp = gr.Interface(fn=saveFile, inputs="file", outputs="text")
|
50 |
+
nxapp.launch()
|
51 |
|
52 |
with gr.Blocks() as demo:
|
|
|
53 |
gr.FileExplorer(label="Working directory")
|
54 |
gr.FileExplorer(root="/home/user/app", label="Persistent storage")
|
55 |
|