File size: 591 Bytes
a5c7816
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# DIY Creator (#17) — Hugging Face Spaces (docker SDK). Cloud demo runs the Claude backend;
# set an ANTHROPIC_API_KEY secret on the Space. To run locally against Ollama instead, ignore this
# file and just `python app.py` (defaults to http://127.0.0.1:11434).
FROM python:3.11-slim

WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .

ENV PORT=7860
# Cloud demo backend. Locally, leave DIY_LLM_BACKEND unset to use Ollama.
ENV DIY_LLM_BACKEND=claude
ENV ANTHROPIC_MODEL=claude-haiku-4-5

EXPOSE 7860
CMD ["python", "app.py"]