Luigi commited on
Commit
6f42108
·
1 Parent(s): 0fdc128

use prebuilt llama cpp python for python 3.10, modify docker to use py3.10 instead of py3.11

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. requirements.txt +1 -1
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  # Dockerfile for HuggingFace Spaces
2
- FROM python:3.11-slim
3
 
4
  # Set working directory
5
  WORKDIR /app
 
1
  # Dockerfile for HuggingFace Spaces
2
+ FROM python:3.10-slim
3
 
4
  # Set working directory
5
  WORKDIR /app
requirements.txt CHANGED
@@ -2,7 +2,7 @@ fastapi==0.109.0
2
  uvicorn[standard]==0.31.1
3
  websockets==12.0
4
  python-multipart==0.0.9
5
- llama-cpp-python==0.3.16
6
  opencc-python-reimplemented==0.1.7
7
  pydantic==2.11.0
8
  aiofiles==23.2.1
 
2
  uvicorn[standard]==0.31.1
3
  websockets==12.0
4
  python-multipart==0.0.9
5
+ llama-cpp-python @ https://huggingface.co/Luigi/llama-cpp-python-wheels-hf-spaces-free-cpu/resolve/main/llama_cpp_python-0.3.16-cp310-cp310-linux_x86_64.whl
6
  opencc-python-reimplemented==0.1.7
7
  pydantic==2.11.0
8
  aiofiles==23.2.1