Jin Zhu commited on
Commit
3c0345d
·
1 Parent(s): 992f591

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -15
Dockerfile CHANGED
@@ -13,21 +13,6 @@ COPY src/ ./src/
13
 
14
  RUN pip3 install -r requirements.txt
15
 
16
- # ─────────────────────────────
17
- # 新增:从 Hugging Face 私有仓库拉取核心 model.py
18
- # ─────────────────────────────
19
- # 使用 Hugging Face Token(需在 Space 的 Secrets 里配置)
20
- ENV HF_TOKEN=$HF_TOKEN
21
-
22
- # 下载私有仓库中的 model.py 并放入 FineTune 目录
23
- RUN mkdir -p /app/src/FineTune && \
24
- echo ">>> Checking HF_TOKEN: ${HF_TOKEN}" && \
25
- curl -v -H "Authorization: Bearer ${HF_TOKEN}" \
26
- -L "https://huggingface.co/mamba413/ada-core/resolve/main/model.py" \
27
- -o /app/src/FineTune/model.py && \
28
- echo "✅ Successfully downloaded private model.py" || \
29
- (echo "❌ Failed to download model.py" && cat /app/src/FineTune/model.py)
30
-
31
  EXPOSE 8501
32
 
33
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
 
13
 
14
  RUN pip3 install -r requirements.txt
15
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  EXPOSE 8501
17
 
18
  HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health