Upload folder using huggingface_hub
Browse files- Dockerfile +8 -10
- requirements.txt +4 -4
Dockerfile
CHANGED
|
@@ -1,16 +1,14 @@
|
|
| 1 |
-
|
| 2 |
-
FROM python:3.9-slim
|
| 3 |
|
| 4 |
-
# Set the working directory inside the container to /app
|
| 5 |
WORKDIR /app
|
|
|
|
| 6 |
|
| 7 |
-
#
|
| 8 |
-
COPY . .
|
| 9 |
-
|
| 10 |
-
# Install Python dependencies listed in requirements.txt
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
|
| 13 |
-
#
|
| 14 |
-
|
|
|
|
| 15 |
|
| 16 |
-
#
|
|
|
|
|
|
| 1 |
+
FROM python:3.11-slim
|
|
|
|
| 2 |
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
+
COPY . /app
|
| 5 |
|
| 6 |
+
# Install just the frontend deps
|
|
|
|
|
|
|
|
|
|
| 7 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 8 |
|
| 9 |
+
# Hugging Face Docker Spaces expect port 7860
|
| 10 |
+
EXPOSE 7860
|
| 11 |
+
ENV PORT=7860
|
| 12 |
|
| 13 |
+
# Start Streamlit on 0.0.0.0:7860
|
| 14 |
+
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
|
requirements.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
pandas==2.2.2
|
| 2 |
-
numpy==2.0.
|
| 3 |
-
scikit-learn==1.
|
| 4 |
-
xgboost==2.1.
|
| 5 |
joblib==1.4.2
|
| 6 |
-
streamlit==1.
|
|
|
|
| 1 |
pandas==2.2.2
|
| 2 |
+
numpy==2.0.1
|
| 3 |
+
scikit-learn==1.5.1
|
| 4 |
+
xgboost==2.1.1
|
| 5 |
joblib==1.4.2
|
| 6 |
+
streamlit==1.37.0
|