tomo2chin2 commited on
Commit
269f3e3
·
verified ·
1 Parent(s): e4603a2

Upload 8 files

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -292,8 +292,9 @@ if __name__ == "__main__":
292
  # GradioとFastAPIを統合
293
  logger.info("MCPサーバーとGradio UIを起動中...")
294
  demo = create_gradio_interface()
295
- # GradioにFastAPIアプリケーションをマウント
296
- gr.mount_gradio_app(app, demo, path="/")
 
297
 
298
  # 統合サーバーを起動
299
  uvicorn.run(app, host="0.0.0.0", port=7860)
 
292
  # GradioとFastAPIを統合
293
  logger.info("MCPサーバーとGradio UIを起動中...")
294
  demo = create_gradio_interface()
295
+
296
+ # GradioアプリケーションをFastAPIにマウント
297
+ app = gr.mount_gradio_app(app, demo, path="/")
298
 
299
  # 統合サーバーを起動
300
  uvicorn.run(app, host="0.0.0.0", port=7860)