Spaces:
Running
Running
Updated Requirements.txt
Browse files- Dockerfile +6 -2
- requirements.txt +2 -0
Dockerfile
CHANGED
|
@@ -1,8 +1,12 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
|
|
|
|
| 3 |
RUN apt-get update && apt-get install -y \
|
| 4 |
git \
|
| 5 |
curl \
|
|
|
|
|
|
|
|
|
|
| 6 |
&& rm -rf /var/lib/apt/lists/*
|
| 7 |
|
| 8 |
WORKDIR /code
|
|
@@ -16,5 +20,5 @@ RUN mkdir -p /models && \
|
|
| 16 |
curl -L -o /models/mistral.gguf https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GGUF/resolve/main/mistral-7b-instruct.Q4_K_M.gguf
|
| 17 |
|
| 18 |
EXPOSE 7860
|
| 19 |
-
|
| 20 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 1 |
+
FROM python:3.10-slim
|
| 2 |
|
| 3 |
+
# Add required build tools
|
| 4 |
RUN apt-get update && apt-get install -y \
|
| 5 |
git \
|
| 6 |
curl \
|
| 7 |
+
build-essential \
|
| 8 |
+
cmake \
|
| 9 |
+
rustc \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
WORKDIR /code
|
|
|
|
| 20 |
curl -L -o /models/mistral.gguf https://huggingface.co/TheBloke/Mistral-7B-Instruct-v0.1-GGUF/resolve/main/mistral-7b-instruct.Q4_K_M.gguf
|
| 21 |
|
| 22 |
EXPOSE 7860
|
| 23 |
+
|
| 24 |
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
requirements.txt
CHANGED
|
@@ -8,6 +8,7 @@ certifi==2025.4.26
|
|
| 8 |
charset-normalizer==3.4.2
|
| 9 |
click==8.2.1
|
| 10 |
comm==0.2.2
|
|
|
|
| 11 |
debugpy==1.8.14
|
| 12 |
decorator==5.2.1
|
| 13 |
executing==2.2.0
|
|
@@ -68,6 +69,7 @@ protobuf==6.31.1
|
|
| 68 |
psutil==7.0.0
|
| 69 |
ptyprocess==0.7.0
|
| 70 |
pure_eval==0.2.3
|
|
|
|
| 71 |
pydantic==2.11.5
|
| 72 |
pydantic_core==2.33.2
|
| 73 |
Pygments==2.19.1
|
|
|
|
| 8 |
charset-normalizer==3.4.2
|
| 9 |
click==8.2.1
|
| 10 |
comm==0.2.2
|
| 11 |
+
ctransformers==0.2.27
|
| 12 |
debugpy==1.8.14
|
| 13 |
decorator==5.2.1
|
| 14 |
executing==2.2.0
|
|
|
|
| 69 |
psutil==7.0.0
|
| 70 |
ptyprocess==0.7.0
|
| 71 |
pure_eval==0.2.3
|
| 72 |
+
py-cpuinfo==9.0.0
|
| 73 |
pydantic==2.11.5
|
| 74 |
pydantic_core==2.33.2
|
| 75 |
Pygments==2.19.1
|