MakiAi commited on
Commit
13396b0
·
verified ·
1 Parent(s): caf810b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py CHANGED
@@ -128,6 +128,7 @@ with gr.Blocks(
128
  title="Gradio Streamable HTTP MCP Demo - MakiAi",
129
  theme=gr.themes.Soft(),
130
  css="""
 
131
  .tab-nav button {
132
  font-size: 16px !important;
133
  }
@@ -299,6 +300,14 @@ with gr.Blocks(
299
 
300
  このアプリは **Gradio PR #11300** で実装された最新の Streamable HTTP Transport 機能を使用しています。
301
 
 
 
 
 
 
 
 
 
302
  **✅ 動作確認済み**:
303
  - MCP Inspector での直接アクセス
304
  - Cursor IDE での HTTP transport
@@ -317,12 +326,20 @@ with gr.Blocks(
317
  - [Original PR #11300](https://github.com/gradio-app/gradio/pull/11300)
318
  - [MCP Protocol](https://modelcontextprotocol.io/)
319
  - [MCP Community Discussion](https://github.com/orgs/modelcontextprotocol/discussions/16)
 
320
  - [Gradio MCP Documentation](https://gradio.app/docs/mcp)
321
  """)
322
 
323
  # アプリケーションの設定とデプロイ
324
  # Live Demo: https://huggingface.co/spaces/MakiAi/gradio-streamable-mcp-demo
325
  # MCP HTTP Endpoint: https://makiai-gradio-streamable-mcp-demo.hf.space/gradio_api/mcp/http/
 
 
 
 
 
 
 
326
  if __name__ == "__main__":
327
  demo.launch(
328
  server_name="0.0.0.0",
 
128
  title="Gradio Streamable HTTP MCP Demo - MakiAi",
129
  theme=gr.themes.Soft(),
130
  css="""
131
+
132
  .tab-nav button {
133
  font-size: 16px !important;
134
  }
 
300
 
301
  このアプリは **Gradio PR #11300** で実装された最新の Streamable HTTP Transport 機能を使用しています。
302
 
303
+ **📦 必要な Dependencies**:
304
+ ```text
305
+ # Gradio with MCP support (特定のプレビューバージョン)
306
+ https://gradio-pypi-previews.s3.amazonaws.com/5bf3a9365e945803ba3b30ec470058c0d1aea03a/gradio-5.31.0-py3-none-any.whl
307
+ Pillow>=10.0.0
308
+ numpy>=1.21.0
309
+ ```
310
+
311
  **✅ 動作確認済み**:
312
  - MCP Inspector での直接アクセス
313
  - Cursor IDE での HTTP transport
 
326
  - [Original PR #11300](https://github.com/gradio-app/gradio/pull/11300)
327
  - [MCP Protocol](https://modelcontextprotocol.io/)
328
  - [MCP Community Discussion](https://github.com/orgs/modelcontextprotocol/discussions/16)
329
+ - [Reference Space by abidlabs](https://huggingface.co/spaces/abidlabs/mcp-tool-http)
330
  - [Gradio MCP Documentation](https://gradio.app/docs/mcp)
331
  """)
332
 
333
  # アプリケーションの設定とデプロイ
334
  # Live Demo: https://huggingface.co/spaces/MakiAi/gradio-streamable-mcp-demo
335
  # MCP HTTP Endpoint: https://makiai-gradio-streamable-mcp-demo.hf.space/gradio_api/mcp/http/
336
+ #
337
+ # 📋 IMPORTANT: Hugging Face Space デプロイ用 requirements.txt:
338
+ # https://gradio-pypi-previews.s3.amazonaws.com/5bf3a9365e945803ba3b30ec470058c0d1aea03a/gradio-5.31.0-py3-none-any.whl
339
+ # Pillow>=10.0.0
340
+ # numpy>=1.21.0
341
+ #
342
+ # このプレビューバージョンには PR #11300 のStreamable HTTP Transport機能が含まれています
343
  if __name__ == "__main__":
344
  demo.launch(
345
  server_name="0.0.0.0",