Upload folder using huggingface_hub
Browse files- Dockerfile +3 -4
- requirements.txt +0 -1
Dockerfile
CHANGED
|
@@ -8,9 +8,8 @@ WORKDIR /app
|
|
| 8 |
COPY . .
|
| 9 |
|
| 10 |
# Install Python dependencies listed in requirements.txt
|
| 11 |
-
RUN pip3 install -r requirements.txt
|
| 12 |
|
| 13 |
-
# Define the command to run the Streamlit app on port
|
| 14 |
-
CMD ["streamlit", "run", "app.py", "--server.port=
|
| 15 |
|
| 16 |
-
# NOTE: Disable XSRF protection for easier external access in order to make batch predictions
|
|
|
|
| 8 |
COPY . .
|
| 9 |
|
| 10 |
# Install Python dependencies listed in requirements.txt
|
| 11 |
+
RUN pip3 install --no-cache -r requirements.txt
|
| 12 |
|
| 13 |
+
# Define the command to run the Streamlit app on port 8502 and make it accessible externally
|
| 14 |
+
CMD ["streamlit", "run", "app.py", "--server.port=8502", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]
|
| 15 |
|
|
|
requirements.txt
CHANGED
|
@@ -3,5 +3,4 @@ numpy==2.0.2
|
|
| 3 |
scikit-learn==1.6.1
|
| 4 |
requests==2.28.1
|
| 5 |
joblib==1.4.2
|
| 6 |
-
xgboost==2.1.4
|
| 7 |
streamlit==1.43.2
|
|
|
|
| 3 |
scikit-learn==1.6.1
|
| 4 |
requests==2.28.1
|
| 5 |
joblib==1.4.2
|
|
|
|
| 6 |
streamlit==1.43.2
|