Skip to content

refactor(demo): GUI-only Space — remove the demo MCP/Docker packaging#141

Merged
YongboYu merged 1 commit into
mainfrom
demo-gui-only
Jun 8, 2026
Merged

refactor(demo): GUI-only Space — remove the demo MCP/Docker packaging#141
YongboYu merged 1 commit into
mainfrom
demo-gui-only

Conversation

@YongboYu

@YongboYu YongboYu commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Final step of the core-artifacts effort (#136). Now that the core MCP (#133) and Docker (#134) artifacts are merged, the demo's own agent surface and self-host image are redundant — revert demo/ to purely the HF Space GUI.

What changed

  • app.py — drop forecast_from_source, the gr.api wiring, the slim agent bundle, and mcp_server=True/show_error; launch GUI-only.
  • forecast_live.py — drop resolve_source + the URL-download helper (agent-input plumbing); the GUI live tab forecasts an uploaded file path directly.
  • requirements.txtgradio[mcp]gradio (the [mcp] extra was only for the demo MCP server).
  • delete demo/Dockerfile + demo/.dockerignore.
  • README — replace the Docker / Agent-API sections with a pointer to docker/ + mcp/.
  • tests — drop the agent-surface / resolve_source tests; keep a guarantee that the GUI exposes no agent endpoints.

Verification

  • uv run pytest demo/tests/ → 65 passed, 18 skipped; uv run --with gradio pytest demo/tests/ → 83 passed.
  • ruff check + format clean. test_deploy confirms README sdk_version still matches the gradio pin (Space build stays valid).
  • −436/+38, demo/ only.

Merging redeploys the Space GUI-only. Closes #136.

The core forecasting capability now ships as dedicated mcp/ + docker/ artifacts
over pmf_tsfm.api (#132/#133/#134, ADR-0008), so the demo's own agent surface and
self-host image are redundant. Revert demo/ to purely the HF Space GUI:

- app.py: drop the forecast_from_source agent tool, the gr.api wiring, the slim
  agent bundle, and mcp_server=True/show_error — launch GUI-only.
- forecast_live.py: drop resolve_source + the URL-download helper (agent-input
  plumbing); the GUI live tab forecasts an uploaded file path directly.
- requirements.txt: gradio[mcp] -> gradio (the [mcp] extra was only for the demo
  MCP server).
- delete demo/Dockerfile + demo/.dockerignore.
- README: replace the Docker / Agent-API sections with a pointer to docker/ + mcp/.
- tests: drop the agent-surface / resolve_source tests; keep a guarantee that the
  GUI exposes no agent endpoints.

Closes #136.
@YongboYu YongboYu merged commit dbe6569 into main Jun 8, 2026
4 checks passed
@YongboYu YongboYu deleted the demo-gui-only branch June 8, 2026 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Core artifacts — demo cleanup: demo/ becomes GUI-only (remove old MCP wiring + Dockerfile)

1 participant