qqwjq1981 commited on
Commit
90b1ed3
·
verified ·
1 Parent(s): b1cfe73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ with gr.Blocks() as demo:
25
  greet_button.click(fn=greet, inputs=name_input, outputs=output_text)
26
 
27
  # Mount the Gradio app at "/gradio"
28
- app.mount("/gradio", demo)
29
 
30
  # Run the FastAPI app with Uvicorn
31
  if __name__ == "__main__":
 
25
  greet_button.click(fn=greet, inputs=name_input, outputs=output_text)
26
 
27
  # Mount the Gradio app at "/gradio"
28
+ gr.mount_gradio_app(app, demo, path="/gradio")
29
 
30
  # Run the FastAPI app with Uvicorn
31
  if __name__ == "__main__":