Spaces:
Running on Zero
Running on Zero
fix(deploy): pin gradio to 6.14 to match running version + claude.md note refresh
Browse files- CLAUDE.md +4 -2
- requirements.txt +1 -1
CLAUDE.md
CHANGED
|
@@ -53,10 +53,12 @@ TBD as discovered during M1+ implementation. Record new ones here as they come u
|
|
| 53 |
- Don't pin `spaces` in `requirements.txt`. HF Spaces' ZeroGPU build injects its own version. A pin causes pip-resolve failure.
|
| 54 |
- `transformers >= 5` may break imports. **Pin:** `transformers>=4.45,<5.0`.
|
| 55 |
|
| 56 |
-
### Gradio
|
| 57 |
|
|
|
|
| 58 |
- Don't put `<script>` tags inside `gr.HTML` blocks — they get stripped. JS goes in `gr.Blocks(head=…)`.
|
| 59 |
-
-
|
|
|
|
| 60 |
|
| 61 |
### HF Spaces deployment
|
| 62 |
|
|
|
|
| 53 |
- Don't pin `spaces` in `requirements.txt`. HF Spaces' ZeroGPU build injects its own version. A pin causes pip-resolve failure.
|
| 54 |
- `transformers >= 5` may break imports. **Pin:** `transformers>=4.45,<5.0`.
|
| 55 |
|
| 56 |
+
### Gradio 6.14 quirks
|
| 57 |
|
| 58 |
+
- Running version is `gradio>=6.14,<7`. `requirements.txt` reflects this; HF Spaces `sdk_version: 6.14.0` matches.
|
| 59 |
- Don't put `<script>` tags inside `gr.HTML` blocks — they get stripped. JS goes in `gr.Blocks(head=…)`.
|
| 60 |
+
- `info=` is not accepted by `gr.Audio` or `gr.File` on 6.14. `tooltips.py` keeps the strings for `COVER_REF_AUDIO`, `EXTEND_SEED_AUDIO`, `EDIT_SOURCE_AUDIO`, `LORA_UPLOAD` as the single source of truth — when upstream lands `info=` on those components, they're a one-line wire-up away.
|
| 61 |
+
- Slate-blue band around primary CTA: defeated via `.styler { background: transparent }` in `theme.CSS`. If a future Gradio bump reintroduces it, the override needs revisiting.
|
| 62 |
|
| 63 |
### HF Spaces deployment
|
| 64 |
|
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
gradio>=
|
| 2 |
transformers>=4.45,<5
|
| 3 |
torch>=2.4
|
| 4 |
torchaudio>=2.4
|
|
|
|
| 1 |
+
gradio>=6.14,<7
|
| 2 |
transformers>=4.45,<5
|
| 3 |
torch>=2.4
|
| 4 |
torchaudio>=2.4
|