Lord-Raven commited on
Commit
d5e6bd8
·
1 Parent(s): 59c51e8

Messing with fastAPI.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -81,6 +81,6 @@ gradio_interface = gradio.Interface(
81
  outputs = gradio.Textbox()
82
  )
83
 
84
- app.mount("/gradio", gradio_interface)
85
 
86
  gradio_interface.launch()
 
81
  outputs = gradio.Textbox()
82
  )
83
 
84
+ app = gradio.mount_gradio_app(app, gradio_interface, path="/gradio")
85
 
86
  gradio_interface.launch()