fffiloni commited on
Commit
278171f
·
verified ·
1 Parent(s): fd472ec

Upload 5 files

Browse files
Files changed (2) hide show
  1. CHANGELOG.md +8 -0
  2. README.md +6 -0
CHANGELOG.md CHANGED
@@ -54,3 +54,11 @@
54
 
55
  - Public product UI without experimental tabs.
56
  - Universal model-card builder and existing-Space validator.
 
 
 
 
 
 
 
 
 
54
 
55
  - Public product UI without experimental tabs.
56
  - Universal model-card builder and existing-Space validator.
57
+
58
+ ## V22 — dependency compatibility and build repair
59
+
60
+ - Removed the obsolete generated-Space constraint `huggingface_hub<1.0.0`.
61
+ - Generated Spaces now normalize Hub requirements to a modern compatible range (`huggingface_hub>=0.34.0,<2.0.0`, or `>=1.5.0,<2.0.0` when Transformers 5.x is detected).
62
+ - Added one automatic Pi repair pass when the generated Space fails build/runtime validation.
63
+ - The repair pass collects Space build/runtime logs, asks Pi for a minimal patch, reuploads the workspace, and retries validation once.
64
+ - Repair artifacts are stored under `runs/<run_id>/repair/` and logs under `logs/pi_repair_output.txt`.
README.md CHANGED
@@ -88,3 +88,9 @@ SPACE_FACTORY_BUCKET_MOUNT=/output
88
  ```
89
 
90
  Do not configure a shared owner/name bucket for a public Space. The app uses HF OAuth; no global admin token should be stored in the Space.
 
 
 
 
 
 
 
88
  ```
89
 
90
  Do not configure a shared owner/name bucket for a public Space. The app uses HF OAuth; no global admin token should be stored in the Space.
91
+
92
+ ### Build repair behavior
93
+
94
+ If a generated Space fails during build or startup, the builder now performs one automatic repair pass. It collects the Space build/runtime logs, gives them back to Pi, asks for a minimal patch, reuploads the workspace, and retries validation once. This is intended for common issues such as dependency resolver conflicts, missing imports, invalid metadata, or Gradio endpoint mistakes.
95
+
96
+ Generated Spaces no longer pin `huggingface_hub<1.0.0`; modern model cards may require Transformers 5.x, which in turn requires newer Hub versions. The builder normalizes generated requirements to a compatible `huggingface_hub<2.0.0` range before upload.