File size: 1,139 Bytes
89e8390
 
6e4f0da
 
 
 
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
# pdac-spatial-agent — re-pin diff (NOT APPLIED)
#
# ⚠ Stale mechanics (rechecked 2026-10-15): spatial now compiles requirements.txt
# from requirements.in (python 3.12). Put the bcc-ui-theme line below in
# requirements.in and recompile with the command in requirements.txt's header;
# do not apply the requirements.txt hunk by hand. The gradio_ui.py hunk stands.
# The easiest adoption in the fleet — one Blocks, no existing CSS to reconcile.

--- a/requirements.txt
+++ b/requirements.txt
@@ -6,6 +6,11 @@
 gradio[oauth]==6.18.0
+
+# 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/gradio_ui.py
+++ b/gradio_ui.py
@@ -374,1 +374,1 @@
-    demo.launch(mcp_server=True)
+    demo.launch(mcp_server=True, theme=theme(), css=CSS)

# plus the import beside the other top-level imports:
+from bcc_ui_theme import CSS, theme