Skip to content

Remove Gradio GUI and Hugging Face deployment (keep view.py refactor) - #22

Merged
picaultj merged 1 commit into
mainfrom
chore/remove-gradio-hf
Jul 21, 2026
Merged

Remove Gradio GUI and Hugging Face deployment (keep view.py refactor)#22
picaultj merged 1 commit into
mainfrom
chore/remove-gradio-hf

Conversation

@picaultj

Copy link
Copy Markdown
Owner

Summary

Hugging Face Gradio Spaces are no longer free, so this removes the Gradio front-end and the HF publish path, leaving NiceGUI as the single GUI. The view.py refactor is keptapp.py still delegates its filter/sort/highlight/compute-view/export logic to it.

Removed

  • conflens/gradio_app.py, space_app.py, requirements.txt (HF Space entry point + deps)
  • .github/workflows/sync-hf-space.yml and .github/huggingface/ (HF sync workflow + Space metadata)
  • tests/test_gradio_app.py
  • pyproject.toml: the gradio optional extra and the conflens-gradio console script
  • .github/workflows/test.yml: back to uv sync (no --extra gradio); uv.lock re-locked (gradio and its deps gone)

Kept (the refactor)

  • conflens/view.py — GUI-agnostic view logic (keywords/matches/highlight/sort_papers/compute_view, CSV/JSON export bytes)
  • tests/test_view.py, and tests/test_matching.py still pointing at view

Docs

README, AGENTS, CLAUDE, and ARCHITECTURE updated back to a single NiceGUI front-end (removed the "two front-ends" framing and the "Deploy to Hugging Face Spaces" section), keeping view.py documented as the view layer.

Testing

  • uv run ruff check . — clean
  • uv run pytest -q67 passed (base install, no gradio extra)
  • NiceGUI app boots → HTTP 200

Related open PRs to close

The earlier HF-fix PRs are now moot and should be closed (their target — the HF sync — is being removed): #20 (HF owner) and #21 (HF runtime/CPU). PR #19 (non-claude branch naming) is unrelated and still valid.


Generated by Claude Code

Hugging Face Gradio Spaces are no longer free, so drop the Gradio front-end and
the HF publish path, keeping the NiceGUI GUI as the only front-end. The shared
view logic refactor (conflens/view.py) is kept — app.py still uses it.

Removed:
- conflens/gradio_app.py, space_app.py, requirements.txt (HF Space entry/deps)
- .github/workflows/sync-hf-space.yml + .github/huggingface/ (HF sync + metadata)
- tests/test_gradio_app.py
- pyproject: the `gradio` extra and the `conflens-gradio` console script
- test.yml: revert to `uv sync` (no gradio extra); uv.lock re-locked (gradio gone)

Docs (README, AGENTS, CLAUDE, ARCHITECTURE) updated back to a single NiceGUI
front-end while keeping view.py as the GUI-agnostic view layer.
@picaultj
picaultj merged commit 5e4cb43 into main Jul 21, 2026
3 of 4 checks passed
@picaultj
picaultj deleted the chore/remove-gradio-hf branch July 21, 2026 07:56
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.

1 participant