Spaces:
Running
on
Zero
Running
on
Zero
John Ho
commited on
Commit
Β·
dc42813
1
Parent(s):
ed66646
change output to JSON foramt
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ demo = gr.Interface(
|
|
| 43 |
gr.Textbox(label="Object to Detect"),
|
| 44 |
gr.Dropdown(label="Mode", choices=["point", "object_detection"]),
|
| 45 |
],
|
| 46 |
-
outputs=gr.JSON(label="Output
|
| 47 |
)
|
| 48 |
demo.launch(
|
| 49 |
mcp_server=True, app_kwargs={"docs_url": "/docs"} # add FastAPI Swagger API Docs
|
|
|
|
| 43 |
gr.Textbox(label="Object to Detect"),
|
| 44 |
gr.Dropdown(label="Mode", choices=["point", "object_detection"]),
|
| 45 |
],
|
| 46 |
+
outputs=gr.JSON(label="Output JSON"),
|
| 47 |
)
|
| 48 |
demo.launch(
|
| 49 |
mcp_server=True, app_kwargs={"docs_url": "/docs"} # add FastAPI Swagger API Docs
|