userisanillusion commited on
Commit
3b16e2f
·
verified ·
1 Parent(s): f638a58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -2,6 +2,8 @@ import os
2
  import subprocess
3
 
4
  subprocess.run(["pip", "install", "-q", "pymupdf", "langchain", "langchain_community", "sentence-transformers", "faiss-cpu", "llama-cpp-python", "gradio", "transformers", "rank_bm25"], check=True)
 
 
5
  subprocess.run(["pip", "install", "-q", "git+https://github.com/chroma-core/chroma.git"], check=True)
6
  subprocess.run(["wget", "-q", "-O", "models/mistral-7b-instruct-v0.3.Q8_0.gguf", "https://huggingface.co/MaziyarPanahi/Mistral-7B-Instruct-v0.3-GGUF/resolve/main/Mistral-7B-Instruct-v0.3.Q8_0.gguf"])
7
 
 
2
  import subprocess
3
 
4
  subprocess.run(["pip", "install", "-q", "pymupdf", "langchain", "langchain_community", "sentence-transformers", "faiss-cpu", "llama-cpp-python", "gradio", "transformers", "rank_bm25"], check=True)
5
+ subprocess.run(["curl", "--proto", "=https", "--tlsv1.2", "-sSf", "https://sh.rustup.rs | sh"], check=True)
6
+ subprocess.run("source $HOME/.cargo/env", shell=True, check=True)
7
  subprocess.run(["pip", "install", "-q", "git+https://github.com/chroma-core/chroma.git"], check=True)
8
  subprocess.run(["wget", "-q", "-O", "models/mistral-7b-instruct-v0.3.Q8_0.gguf", "https://huggingface.co/MaziyarPanahi/Mistral-7B-Instruct-v0.3-GGUF/resolve/main/Mistral-7B-Instruct-v0.3.Q8_0.gguf"])
9