Download docs/repin/lit-agent.diff from anne-voigt/bcc-ui-theme: direct link, hf CLI and curl.
- Browser
- Download file 1.66 kB
-
https://huggingface.co/anne-voigt/bcc-ui-theme/resolve/main/docs/repin/lit-agent.diff
- Command line
-
hf download hf://anne-voigt/bcc-ui-theme/docs/repin/lit-agent.diff
-
curl -L -o lit-agent.diff https://huggingface.co/anne-voigt/bcc-ui-theme/resolve/main/docs/repin/lit-agent.diff
1.66 kB
| # lit-agent — re-pin diff (NOT APPLIED) | |
| # | |
| # NOT BLOCKED. The 2026-09-22 "migrate to gradio 6 first" ordering was reversed | |
| # on 2026-09-25 (docs/ADOPTION.md §5): lit-agent adopts NOW, on gradio 5.50. | |
| # | |
| # The hunks below are the older POST-migration form — do not apply them as-is. | |
| # The adopt-now form is: | |
| # - requirements.txt: add ONLY the bcc-ui-theme line; leave `gradio>=5,<6`. | |
| # - ui.py: put `theme=theme(), css=CSS` on the existing gr.Blocks(title=...) | |
| # constructor (ui.py:639 when this was written — re-find it). NOT on | |
| # launch(): launch() on 5.50 has no **kwargs and raises TypeError. | |
| # That Blocks() line keeps working unchanged after a later gradio 6 migration. | |
| # | |
| # Hand-pinned: no requirements.in. | |
| --- a/requirements.txt | |
| +++ b/requirements.txt | |
| -gradio>=5,<6 # HF Space chat shell (mirror research-coordinator) | |
| +gradio==6.18.0 # HF Space chat shell; in step with the rest of the fleet | |
| + # (keep sdk_version in README front-matter in step too) | |
| + | |
| +# bcc-ui-theme: shared Gradio theme + stylesheet for the fleet. | |
| +# Immutable HF resolve URL, never a git install — HF's git server cannot serve | |
| +# pip's partial clone, so git+https fails on a Space build. | |
| +bcc-ui-theme @ https://huggingface.co/anne-voigt/bcc-ui-theme/resolve/6a43c179b3f5a6ea9dfc9b5447235f31a699977a/bcc_ui_theme-0.1.0-py3-none-any.whl | |
| --- a/app.py | |
| +++ b/app.py | |
| - LitAgentUI().build().launch(server_name="0.0.0.0", server_port=7860, ssr_mode=False) | |
| + LitAgentUI().build().launch( | |
| + server_name="0.0.0.0", server_port=7860, ssr_mode=False, theme=theme(), css=CSS | |
| + ) | |