nubiasv2 / Dockerfile
Ano woy
Upload 3 files
462cd52 verified
Raw
History Blame Contribute Delete
720 Bytes
FROM python:3.11-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential gcc g++ && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install torch CPU separately to avoid index-url conflicts
RUN pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu
# Install Qwen2.5-7B compatible transformers + core deps
RUN pip install --no-cache-dir \
"transformers>=4.53.0" \
accelerate \
gradio \
"spacy>=3.7.0,<3.8.0"
# Install CodeCarbon (sustainability tracking)
RUN pip install --no-cache-dir \
"codecarbon>=2.4.0"
RUN python -m spacy download en_core_web_sm
COPY bias_detector.py .
COPY app.py .
EXPOSE 7860
CMD ["python", "app.py"]