File size: 1,658 Bytes
4b5f31c 89e8390 4b5f31c 89e8390 4b5f31c 89e8390 4b5f31c 89e8390 6e4f0da 89e8390 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | # 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
+ )
|