Spaces:
Runtime error
Runtime error
Create .hf_build.sh
Browse files- .hf_build.sh +13 -0
.hf_build.sh
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# 1. 安装系统依赖(替代默认流程)
|
| 4 |
+
apt-get update && apt-get install -y \
|
| 5 |
+
git git-lfs ffmpeg libsm6 libxext6 libgl1 \
|
| 6 |
+
&& rm -rf /var/lib/apt/lists/* \
|
| 7 |
+
&& git lfs install
|
| 8 |
+
|
| 9 |
+
# 2. 安装 Python 依赖
|
| 10 |
+
pip install -r requirements.txt
|
| 11 |
+
|
| 12 |
+
# 3. 启动应用(根据你的实际入口文件调整)
|
| 13 |
+
gunicorn app:app -b 0.0.0.0:7860
|