Spaces:
Running on Zero
chore(follow-ups): anchor CTA cross-link + requirements upper-bound pins
Browse filesTwo of the post-merge follow-ups documented in
specs/004-berkshire-test/tasks.md, knocked out together:
1. Anchor essay Section 8 "Run any new proposal through the diagnostic"
now mentions both lab versions: the deterministic 5-question version
(existing link) AND the AI-powered narrative version. Wording
describes the tradeoff (fast determinism vs longer-form analysis)
so the reader picks the one that matches their use case.
2. gradio-apps/compounding-test/requirements.txt — added upper-bound
pins to all 9 dependencies. This is the same class of bug as the
Gradio 4→5 surprise that bit us during initial Space build:
gradio>=5.0,<6
transformers>=4.45,<5
torch>=2.4,<3
accelerate>=1.0,<2
huggingface_hub>=0.27,<2
anthropic>=0.39,<1
spaces>=0.30,<2
python-dotenv>=1.0,<2
pytest>=8.0,<9
When a major version of any of these lands, the Space pip-install
will fail loud on the cap rather than installing a broken combo.
Verification:
npm run build clean (anchor essay rebuilt with new link text)
pytest 63 passed, 1 skipped (unchanged)
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- requirements.txt +11 -10
|
@@ -1,22 +1,23 @@
|
|
| 1 |
# Core (always required)
|
| 2 |
# Gradio 5.x is required — earlier 4.x versions import the now-removed
|
| 3 |
# `HfFolder` symbol from `huggingface_hub`, breaking the Space at startup
|
| 4 |
-
# when paired with huggingface_hub>=1.0.
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
|
|
|
| 8 |
|
| 9 |
# Anthropic backend (only needed if MODEL_PROVIDER=anthropic)
|
| 10 |
-
anthropic>=0.39
|
| 11 |
|
| 12 |
# HuggingFace API backend (only needed if MODEL_PROVIDER=huggingface)
|
| 13 |
-
huggingface_hub>=0.27
|
| 14 |
|
| 15 |
# ZeroGPU backend (only needed if MODEL_PROVIDER=zerogpu, i.e. running
|
| 16 |
# on a HuggingFace Pro Space with on-demand A100/H100 allocation).
|
| 17 |
# These are heavy (~2GB total via torch); local-only users who do not
|
| 18 |
# plan to use the zerogpu backend can omit these.
|
| 19 |
-
spaces>=0.30
|
| 20 |
-
transformers>=4.45
|
| 21 |
-
torch>=2.4
|
| 22 |
-
accelerate>=1.0
|
|
|
|
| 1 |
# Core (always required)
|
| 2 |
# Gradio 5.x is required — earlier 4.x versions import the now-removed
|
| 3 |
# `HfFolder` symbol from `huggingface_hub`, breaking the Space at startup
|
| 4 |
+
# when paired with huggingface_hub>=1.0. Upper bound (`<6`) prevents the
|
| 5 |
+
# same silent-break class of bug when 6.0 lands.
|
| 6 |
+
gradio>=5.0,<6
|
| 7 |
+
python-dotenv>=1.0,<2
|
| 8 |
+
pytest>=8.0,<9
|
| 9 |
|
| 10 |
# Anthropic backend (only needed if MODEL_PROVIDER=anthropic)
|
| 11 |
+
anthropic>=0.39,<1
|
| 12 |
|
| 13 |
# HuggingFace API backend (only needed if MODEL_PROVIDER=huggingface)
|
| 14 |
+
huggingface_hub>=0.27,<2
|
| 15 |
|
| 16 |
# ZeroGPU backend (only needed if MODEL_PROVIDER=zerogpu, i.e. running
|
| 17 |
# on a HuggingFace Pro Space with on-demand A100/H100 allocation).
|
| 18 |
# These are heavy (~2GB total via torch); local-only users who do not
|
| 19 |
# plan to use the zerogpu backend can omit these.
|
| 20 |
+
spaces>=0.30,<2
|
| 21 |
+
transformers>=4.45,<5
|
| 22 |
+
torch>=2.4,<3
|
| 23 |
+
accelerate>=1.0,<2
|