Spaces:
Sleeping
Sleeping
| # Use the official Python 3.9 image | |
| FROM python:3.9 | |
| # Set the working directory to /code | |
| WORKDIR /code | |
| # Copy the requirements file into the container at /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| # Install the dependencies | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy the rest of your application code | |
| COPY . . | |
| # Create a writable directory for cache/temporary files if needed (good practice) | |
| RUN mkdir -p /code/cache && chmod 777 /code/cache | |
| # Command to run the application | |
| # Run Gradio directly (compatible with Hugging Face Spaces) | |
| CMD ["python", "app.py"] |