File size: 415 Bytes
e37abe2
2800109
b0c7b3b
83c25ba
f3be2ab
07a9f51
 
cf0efb2
 
 
1
2
3
4
5
6
7
8
9
10
import subprocess

# commented because the existing llama-cpp-python package was renoved fron requirements.txt
subprocess.run("pip uninstall -y llama-cpp-python", shell=True)

install_command = "pip install llama-cpp-python \
  --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/123"
subprocess.run(install_command, shell=True)

subprocess.run("uvicorn app:app --host 0.0.0.0 --port 7860", shell=True)