bcc-ui-theme / docs /repin /lit-agent.diff
Annie Voigt
Claude Opus 5.5
docs: 0.1.0 released at 6a43c17 — real pin line in every repin diff; genomics applied on dev
6e4f0da
Raw History Blame Contribute Delete
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
@@ -31,1 +31,7 @@
-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
@@ -29,1 +29,3 @@
- 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
+ )