Spaces:
Sleeping
Sleeping
File size: 783 Bytes
092cfb4 470eac4 7aa03a0 470eac4 4667b2a 470eac4 58a6928 470eac4 4667b2a d6139f3 4667b2a 346a3ac 6553b4f 470eac4 d6139f3 470eac4 | 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 | FROM python:3.12-slim
# Force rebuild: 2026-03-10-v3
WORKDIR /app
# Copy only requirements first (for better caching)
COPY requirements-demo.txt .
# Install dependencies
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements-demo.txt
# Copy source code (demo only needs the gradio script and data)
COPY scripts/demo_gradio.py scripts/
COPY data/discovery_dataset.jsonl data/
# Copy evaluation metrics if available (demo handles absence gracefully)
RUN mkdir -p outputs
COPY outputs/evaluation_report.jso[n] outputs/
# Set environment variables for Gradio
ENV GRADIO_SERVER_NAME="0.0.0.0"
ENV GRADIO_SERVER_PORT="7860"
ENV GRADIO_ANALYTICS_ENABLED="False"
ENV PYTHONUNBUFFERED="1"
EXPOSE 7860
CMD ["python", "scripts/demo_gradio.py"]
|