OppaAI commited on
Commit
6bcc2b6
·
verified ·
1 Parent(s): d12aa0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -138,13 +138,13 @@ Respond in STRICT JSON ONLY:
138
  # ---------------------------------------------------
139
  # Gradio UI — Use a simple placeholder function for the UI
140
  # ---------------------------------------------------
141
- def gradio_placeholder(payload):
142
  # This is just for the interactive UI, the real API call goes to /robot_watch endpoint
143
  return {"message": "Use the MCP Client to call the robot_watch tool."}
144
 
145
 
146
  app = gr.Interface(
147
- fn=gradio_placeholder,
148
  inputs=gr.JSON(),
149
  outputs=gr.JSON(),
150
  title="Robot MCP Server",
 
138
  # ---------------------------------------------------
139
  # Gradio UI — Use a simple placeholder function for the UI
140
  # ---------------------------------------------------
141
+ def robot_watch(payload):
142
  # This is just for the interactive UI, the real API call goes to /robot_watch endpoint
143
  return {"message": "Use the MCP Client to call the robot_watch tool."}
144
 
145
 
146
  app = gr.Interface(
147
+ fn=robot_watch,
148
  inputs=gr.JSON(),
149
  outputs=gr.JSON(),
150
  title="Robot MCP Server",