Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -64,15 +64,16 @@ def smoldocling_readimage(image, prompt_text):
|
|
| 64 |
return result.replace("<end_of_utterance>", "").strip()
|
| 65 |
|
| 66 |
# Gradio UI
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
|
|
|
| 77 |
|
| 78 |
-
demo.launch(mcp_server=True)
|
|
|
|
| 64 |
return result.replace("<end_of_utterance>", "").strip()
|
| 65 |
|
| 66 |
# Gradio UI
|
| 67 |
+
with gr.Blocks() as demo:
|
| 68 |
+
gr.Markdown(
|
| 69 |
+
"""
|
| 70 |
+
This is a MCP only tool for RS Studies
|
| 71 |
+
This connects to a remote chromadb instance.
|
| 72 |
+
This tool is MCP-only, so it does not have a UI.
|
| 73 |
+
"""
|
| 74 |
+
)
|
| 75 |
+
gr.api(
|
| 76 |
+
smoldocling_readimage
|
| 77 |
+
)
|
| 78 |
|
| 79 |
+
_, url, _ = demo.launch(mcp_server=True)
|