Spaces:
Running
Running
Dev Nagaich commited on
Commit ·
79e1b30
1
Parent(s): e9f1b56
Fix: Remove invalid multi-line Python code in Dockerfile RUN instruction
Browse files- Dockerfile +1 -9
Dockerfile
CHANGED
|
@@ -25,16 +25,8 @@ COPY app.py model_server.py ./
|
|
| 25 |
RUN mkdir -p .streamlit
|
| 26 |
COPY .streamlit/config.toml .streamlit/ 2>/dev/null || true
|
| 27 |
|
| 28 |
-
#
|
| 29 |
ENV HF_TOKEN=""
|
| 30 |
-
RUN python -c "
|
| 31 |
-
import os
|
| 32 |
-
if os.getenv('HF_TOKEN'):
|
| 33 |
-
# Model weights are downloaded when the app first runs
|
| 34 |
-
print('HF_TOKEN configured for model download')
|
| 35 |
-
else:
|
| 36 |
-
print('Warning: HF_TOKEN not set. Model will be downloaded on first app run.')
|
| 37 |
-
" || true
|
| 38 |
|
| 39 |
# Expose Streamlit port
|
| 40 |
EXPOSE 7860
|
|
|
|
| 25 |
RUN mkdir -p .streamlit
|
| 26 |
COPY .streamlit/config.toml .streamlit/ 2>/dev/null || true
|
| 27 |
|
| 28 |
+
# Set environment variable for model download
|
| 29 |
ENV HF_TOKEN=""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
# Expose Streamlit port
|
| 32 |
EXPOSE 7860
|