Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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 |
-
|
|
|
|
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)
|