lanbogao commited on
Commit
b604603
1 Parent(s): 1f9b118

Update app.py

Browse files

https://github.com/gradio-app/gradio/issues/1608

Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -12,4 +12,9 @@ def read_main():
12
 
13
 
14
  io = gr.Interface(lambda x: "Hello, " + x + "!", "textbox", "textbox")
15
- app = gr.mount_gradio_app(app, io, path=CUSTOM_PATH)
 
 
 
 
 
 
12
 
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)