Sebastian Schmülling commited on
Commit
0cc1518
·
1 Parent(s): bc1613f

Try workaround

Browse files
Files changed (2) hide show
  1. app.py +3 -0
  2. requirements.txt +0 -1
app.py CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  import gradio as gr
2
  import hopsworks
3
  from sentence_transformers import SentenceTransformer
 
1
+ import subprocess
2
+ subprocess.run("pip install llama-cpp-python==0.3.15", shell=True, check=True)
3
+
4
  import gradio as gr
5
  import hopsworks
6
  from sentence_transformers import SentenceTransformer
requirements.txt CHANGED
@@ -3,7 +3,6 @@ langchain
3
  langchain-docling
4
  sentence-transformers
5
  hopsworks[python] == 4.4.*
6
- llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
7
  python-dotenv
8
  faiss-cpu
9
  numpy
 
3
  langchain-docling
4
  sentence-transformers
5
  hopsworks[python] == 4.4.*
 
6
  python-dotenv
7
  faiss-cpu
8
  numpy