Spaces:
Running
Running
Use matching CPU PyTorch builds on the CPU-only Space
Browse files- requirements.txt +16 -14
requirements.txt
CHANGED
|
@@ -1,14 +1,16 @@
|
|
| 1 |
-
gradio==5.29.0
|
| 2 |
-
fastapi>=0.115.2,<1
|
| 3 |
-
huggingface_hub>=0.34,<1.0
|
| 4 |
-
numpy
|
| 5 |
-
pandas
|
| 6 |
-
Pillow>=10
|
| 7 |
-
onnxruntime
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
|
|
|
|
|
|
|
|
| 1 |
+
gradio==5.29.0
|
| 2 |
+
fastapi>=0.115.2,<1
|
| 3 |
+
huggingface_hub>=0.34,<1.0
|
| 4 |
+
numpy
|
| 5 |
+
pandas
|
| 6 |
+
Pillow>=10
|
| 7 |
+
onnxruntime
|
| 8 |
+
# 此空间使用 CPU;固定同版 CPU 构建,避免下载无用的 CUDA 运行库。
|
| 9 |
+
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 10 |
+
torch==2.14.1+cpu
|
| 11 |
+
torchvision==0.29.1+cpu
|
| 12 |
+
timm==1.0.27
|
| 13 |
+
transformers==4.57.6
|
| 14 |
+
requests
|
| 15 |
+
httpx==0.28.1
|
| 16 |
+
pydantic>=2,<2.12
|