Spaces:
Running on Zero
Running on Zero
Upload folder using huggingface_hub
Browse files- app.py +0 -8
- 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 |
-
#
|
| 2 |
-
#
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
einops
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
| 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
|