Spaces:
Runtime error
Runtime error
File size: 1,200 Bytes
fd76e63 2cc756f fd76e63 2cc756f fd76e63 2cc756f fd76e63 2cc756f fd76e63 2cc756f fd76e63 2cc756f fd76e63 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# # Dockerfile
# FROM python:3.10-slim
# WORKDIR /app
# # Install system dependencies
# RUN apt-get update && apt-get install -y git-lfs && apt-get clean
# # Install Python dependencies
# COPY requirements.txt .
# RUN pip install --no-cache-dir -r requirements.txt && \
# python -m spacy download en_core_web_sm
# # Copy application code and model
# COPY main.py .
# COPY config.json .
# COPY model.safetensors .
# COPY tokenizer_config.json .
# COPY vocab.json .
# COPY merges.txt .
# COPY generation_config.json .
# COPY special_tokens_map.json .
# # Fix permissions
# RUN chmod -R 755 /app
# EXPOSE 7860
# CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
FROM python:3.10-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y git-lfs && apt-get clean && rm -rf /var/lib/apt/lists/*
# Copy requirements and install Python dependencies
COPY requirements.txt .
RUN pip install --upgrade pip && \
pip install --no-cache-dir -r requirements.txt && \
python -m spacy download en_core_web_sm
# Copy all application files
COPY . .
# Expose port for Gradio
EXPOSE 7860
# Command to run the Gradio app
CMD ["python", "app.py"]
|