OppaAI commited on
Commit
54fb5ed
·
verified ·
1 Parent(s): ef2db45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,17 +3,17 @@ import base64
3
  import gradio as gr
4
  from huggingface_hub import upload_file, InferenceClient
5
  import json
6
- from fastmcp import MCP, STIO
7
 
8
  # --- Config ---
9
  HF_DATASET_REPO = "OppaAI/Robot_MCP"
10
  HF_VLM_MODEL = "Qwen/Qwen2.5-VL-7B-Instruct"
11
 
12
  # --- MCP server instance ---
13
- mcp = MCP()
14
 
15
  # --- STIO for the LLM ---
16
- stio = STIO(mcp) # Bind STIO to MCP tools
17
 
18
  # --- MCP Tool ---
19
  @mcp.tools()
 
3
  import gradio as gr
4
  from huggingface_hub import upload_file, InferenceClient
5
  import json
6
+ from fastmcp import FastMCP
7
 
8
  # --- Config ---
9
  HF_DATASET_REPO = "OppaAI/Robot_MCP"
10
  HF_VLM_MODEL = "Qwen/Qwen2.5-VL-7B-Instruct"
11
 
12
  # --- MCP server instance ---
13
+ mcp = FastMCP("Robot MCP")
14
 
15
  # --- STIO for the LLM ---
16
+ #stio = STIO(mcp) # Bind STIO to MCP tools
17
 
18
  # --- MCP Tool ---
19
  @mcp.tools()