File size: 489 Bytes
be94210
983456a
b266f1a
 
 
983456a
 
b266f1a
be94210
983456a
b266f1a
 
 
 
 
983456a
 
 
b266f1a
b552839
 
983456a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.11

WORKDIR /app

# Install system basics
RUN apt-get update && apt-get install -y \
    build-essential \
    python3-dev \
    & rm -rf /var/lib/apt/lists/*

# Install llama-cpp-python using the pre-built CPU wheel to avoid compilation errors
RUN pip install --no-cache-dir \
    gradio \
    huggingface_hub \
    llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu

COPY . .

# HF Spaces requirement
EXPOSE 7860

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