Spaces:
Sleeping
Sleeping
Commit
β’
d978202
1
Parent(s):
8463ce1
Fix
Browse files- app.py +4 -4
- {static β images}/lion.jpg +0 -0
app.py
CHANGED
@@ -11,7 +11,7 @@ def print_foo():
|
|
11 |
print("FOO!!!")
|
12 |
|
13 |
def dream(prompt):
|
14 |
-
return ["
|
15 |
|
16 |
block = gr.Blocks().queue()
|
17 |
with block:
|
@@ -23,6 +23,6 @@ with block:
|
|
23 |
|
24 |
gradio_app = gr.routes.App.create_app(block)
|
25 |
|
26 |
-
app = gr.mount_gradio_app(app, gradio_app, "localhost", "7869", "/")
|
27 |
-
app.mount("/
|
28 |
-
uvicorn.run(app,
|
11 |
print("FOO!!!")
|
12 |
|
13 |
def dream(prompt):
|
14 |
+
return ["images/lion.jpg"] * 2, {}
|
15 |
|
16 |
block = gr.Blocks().queue()
|
17 |
with block:
|
23 |
|
24 |
gradio_app = gr.routes.App.create_app(block)
|
25 |
|
26 |
+
app = gr.mount_gradio_app(app, gradio_app, "localhost", "7869", "/gradio")
|
27 |
+
app.mount("/img", StaticFiles(directory="images", html=True), name="images")
|
28 |
+
uvicorn.run(app, port=7860)
|
{static β images}/lion.jpg
RENAMED
File without changes
|