Spaces:
Configuration error
Configuration error
| # Use a lightweight Python version | |
| FROM python:3.9-slim | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # Copy all files from your computer to the container | |
| COPY . /app | |
| # Install the required libraries | |
| RUN pip install flask pandas scikit-learn nltk joblib | |
| # Download NLTK data inside the container so it doesn't fail | |
| RUN python -m nltk.downloader stopwords wordnet punkt punkt_tab | |
| # Expose Port 5000 so we can access the app | |
| EXPOSE 5000 | |
| # Command to run the app when the container starts | |
| CMD ["python", "app.py"] |