File size: 705 Bytes
1b81d36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Use a lightweight Python base
FROM python:3.11-slim

# Install build essentials for llama-cpp
RUN apt-get update && apt-get install -y \
    build-essential \
    python3-dev \
    wget \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /app

# Install dependencies
RUN pip install --no-cache-dir llama-cpp-python gradio

# Download the Phi-4-mini-instruct GGUF (Uncensored/Abliterated version)
# Replace the URL with the specific hub link for the 'Abliterated' variant you choose
RUN wget https://huggingface.co/bartowski/Phi-4-mini-instruct-GGUF/resolve/main/Phi-4-mini-instruct-Q4_K_M.gguf -O model.gguf

COPY . .

# Hugging Face Spaces expect port 7860
EXPOSE 7860

# Run the app
CMD ["python", "app.py"]