Spaces:
Running
Running
File size: 481 Bytes
fbab408 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
FROM python:3.8
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt
# Copy application code
COPY . .
# Set environment variables (optional)
# ENV HF_TOKEN="write_token"
# Download and cache the code generation model
RUN transformers-cli login
RUN transformers-cli download Salesforce/codegen-350M-mono --cache_dir /app/.cache
# Expose port for Gradio interface (optional)
EXPOSE 7860
# Run the application
CMD ["python", "app.py"] |