Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +1 -4
Dockerfile
CHANGED
|
@@ -9,7 +9,7 @@ ENV PYTHONUNBUFFERED=1
|
|
| 9 |
WORKDIR /app
|
| 10 |
|
| 11 |
# Copy project files
|
| 12 |
-
COPY response_1.py /app
|
| 13 |
|
| 14 |
# Install system dependencies
|
| 15 |
RUN apt-get update && apt-get install -y \
|
|
@@ -20,9 +20,6 @@ RUN apt-get update && apt-get install -y \
|
|
| 20 |
# Install Python dependencies
|
| 21 |
RUN pip install --no-cache-dir torch flask pandas scikit-learn
|
| 22 |
|
| 23 |
-
# Download the model or ensure it's created at runtime
|
| 24 |
-
# You can optionally use RUN commands to preload data if required.
|
| 25 |
-
|
| 26 |
# Expose port for Flask app
|
| 27 |
EXPOSE 7860
|
| 28 |
|
|
|
|
| 9 |
WORKDIR /app
|
| 10 |
|
| 11 |
# Copy project files
|
| 12 |
+
COPY response_1.py gpt_model.pth /app
|
| 13 |
|
| 14 |
# Install system dependencies
|
| 15 |
RUN apt-get update && apt-get install -y \
|
|
|
|
| 20 |
# Install Python dependencies
|
| 21 |
RUN pip install --no-cache-dir torch flask pandas scikit-learn
|
| 22 |
|
|
|
|
|
|
|
|
|
|
| 23 |
# Expose port for Flask app
|
| 24 |
EXPOSE 7860
|
| 25 |
|