Spaces:
Sleeping
Sleeping
File size: 556 Bytes
8941b49 f33204d 8941b49 | 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.10-slim
# Set working directory
WORKDIR /app
# Install dependencies
RUN pip install --no-cache-dir \
fastapi==0.104.1 \
uvicorn==0.24.0 \
pydantic==2.5.0 \
pandas==2.1.3 \
numpy==1.26.2 \
openai==1.3.7 \
pyyaml==6.0.1
# Copy all project files
COPY . .
# Environment variables judges will set
ENV API_BASE_URL=https://api.openai.com/v1
ENV MODEL_NAME=gpt-4o-mini
ENV HF_TOKEN=""
ENV OPENAI_API_KEY=""
# Expose port
EXPOSE 7860
# Start server
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|