luca115 commited on
Commit
2419549
·
verified ·
1 Parent(s): 8f44637

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. app.py +0 -8
  2. requirements.txt +10 -9
app.py CHANGED
@@ -1,11 +1,3 @@
1
-
2
- # PINDUMP (temporary): print resolved versions to the run log for harvesting.
3
- import importlib.metadata as _ilm
4
- for _pkg in ['transformers', 'einops', 'torchvision', 'sentencepiece', 'protobuf', 'accelerate', 'pillow']:
5
- try:
6
- print(f"PINDUMP {_pkg}=={_ilm.version(_pkg)}", flush=True)
7
- except Exception:
8
- pass
9
  import gradio as gr
10
  import spaces
11
  import torch
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
  import spaces
3
  import torch
requirements.txt CHANGED
@@ -1,9 +1,10 @@
1
- # Loose on purpose for the first build; harvest exact pins once RUNNING
2
- # (hf-spaces/README.md, "Harvest exact pins").
3
- transformers>=4.57,<5
4
- accelerate
5
- pillow
6
- einops
7
- torchvision
8
- sentencepiece
9
- protobuf
 
 
1
+ # Exact pins harvested from the running Space (PINDUMP cycle); rebuilds
2
+ # resolve identically instead of drifting. transformers must stay <5: the
3
+ # pinned model revision's remote code targets the 4.x API.
4
+ transformers==4.57.6
5
+ accelerate==1.14.0
6
+ einops==0.8.2
7
+ pillow==11.3.0
8
+ protobuf==3.20.3
9
+ sentencepiece==0.2.2
10
+ torchvision==0.26.0