freddyaboulton HF staff commited on
Commit
d978202
β€’
1 Parent(s): 8463ce1
Files changed (2) hide show
  1. app.py +4 -4
  2. {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 ["static/lion.jpg"] * 2, {}
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("/images", StaticFiles(directory="static", html=True), name="static")
28
- uvicorn.run(app, host='0.0.0.0', port=7860)
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