Spaces:
Paused
Paused
lanny xu
commited on
Commit
·
83e265e
1
Parent(s):
de50a7a
Use CPU-only PyTorch to reduce build size and time
Browse files- requirements.txt +3 -0
requirements.txt
CHANGED
|
@@ -2,6 +2,9 @@
|
|
| 2 |
# 运行以下命令安装: pip install -r requirements.txt
|
| 3 |
|
| 4 |
# 核心框架
|
|
|
|
|
|
|
|
|
|
| 5 |
langchain>=0.1.0
|
| 6 |
langgraph>=0.0.40
|
| 7 |
langchain-community>=0.0.20
|
|
|
|
| 2 |
# 运行以下命令安装: pip install -r requirements.txt
|
| 3 |
|
| 4 |
# 核心框架
|
| 5 |
+
# 使用 CPU 版本的 PyTorch 以减小体积 (Hugging Face Spaces 免费版没有 GPU)
|
| 6 |
+
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 7 |
+
torch>=2.0.0
|
| 8 |
langchain>=0.1.0
|
| 9 |
langgraph>=0.0.40
|
| 10 |
langchain-community>=0.0.20
|