aklai commited on
Commit
7e64a8e
·
1 Parent(s): 197a01c

Update Space

Browse files
Files changed (2) hide show
  1. app.py +5 -1
  2. requirements.txt +1 -0
app.py CHANGED
@@ -10,8 +10,12 @@ from langchain_core.prompts import PromptTemplate
10
  from langchain_chroma import Chroma
11
 
12
  from langchain_community.llms import GPT4All
 
13
 
14
- llm = GPT4All(model="./models/bling-phi-3.gguf")
 
 
 
15
 
16
  # Initialize embedding model "all-MiniLM-L6-v2"
17
  embedding_model = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
 
10
  from langchain_chroma import Chroma
11
 
12
  from langchain_community.llms import GPT4All
13
+ from huggingface_hub import hf_hub_download
14
 
15
+ model_name = "bling-phi-3.gguf"
16
+ hf_hub_download(repo_id="llmware/bling-phi-3-gguf", filename=model_name)
17
+
18
+ llm = GPT4All(model="./bling-phi-3.gguf")
19
 
20
  # Initialize embedding model "all-MiniLM-L6-v2"
21
  embedding_model = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
requirements.txt CHANGED
@@ -7,4 +7,5 @@ chromadb
7
  langchain-chroma
8
  torch
9
  transformers
 
10
  gpt4all
 
7
  langchain-chroma
8
  torch
9
  transformers
10
+ huggingface_hub
11
  gpt4all