Spaces:
Paused
Paused
Upload 8 files
Browse files
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 |
-
|
| 296 |
-
|
|
|
|
| 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)
|