Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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=
|
| 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",
|