OppaAI commited on
Commit
a0b02ea
·
verified ·
1 Parent(s): d598663

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -77,7 +77,7 @@ def safe_parse_json_from_text(text: str):
77
  # ---------------------------------------------------
78
  # TRUE MCP TOOL — THIS must be exposed to MCP client
79
  # ---------------------------------------------------
80
- @mcp.api("/robot_watch", description="Analyze a base64 image using Qwen VLM and return structured JSON.")
81
  def robot_watch(payload: RobotWatchPayload): # <-- Type hint with Pydantic model
82
  # The payload is already validated and typed correctly by fastmcp/pydantic
83
  hf_token = payload.hf_token
 
77
  # ---------------------------------------------------
78
  # TRUE MCP TOOL — THIS must be exposed to MCP client
79
  # ---------------------------------------------------
80
+ @mcp.tool("robot_watch", description="Analyze a base64 image using Qwen VLM and return structured JSON.")
81
  def robot_watch(payload: RobotWatchPayload): # <-- Type hint with Pydantic model
82
  # The payload is already validated and typed correctly by fastmcp/pydantic
83
  hf_token = payload.hf_token