lanbogao commited on
Commit
bd6d142
1 Parent(s): ed11184

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -3
main.py CHANGED
@@ -13,8 +13,9 @@ def read_main():
13
 
14
  io = gr.Interface(lambda x: "Hello, " + x + "!", "textbox", "textbox")
15
 
16
- gradio_app = gr.routes.App.create_app(io)
17
 
18
- app.mount(CUSTOM_PATH, gradio_app)
19
 
20
- #app = gr.mount_gradio_app(app, io, path=CUSTOM_PATH)
 
 
13
 
14
  io = gr.Interface(lambda x: "Hello, " + x + "!", "textbox", "textbox")
15
 
16
+ #gradio_app = gr.routes.App.create_app(io)
17
 
18
+ #app.mount(CUSTOM_PATH, gradio_app)
19
 
20
+ app = gr.mount_gradio_app(app, io, path=CUSTOM_PATH)
21
+ uvicorn.run(app, host="0.0.0.0", port=7860)