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

Update Space

Browse files
Files changed (2) hide show
  1. .DS_Store +0 -0
  2. app.py +6 -2
.DS_Store CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
 
app.py CHANGED
@@ -12,10 +12,14 @@ from langchain_chroma import Chroma
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")
 
12
  from langchain_community.llms import GPT4All
13
  from huggingface_hub import hf_hub_download
14
 
15
+ """
16
+ model_path = "models"
17
  model_name = "bling-phi-3.gguf"
18
+ hf_hub_download(repo_id="llmware/bling-phi-3-gguf", filename=model_name, local_dir=model_path)
19
+ """
20
+
21
+ llm = GPT4All(model="./models/bling-phi-3.gguf")
22
 
 
23
 
24
  # Initialize embedding model "all-MiniLM-L6-v2"
25
  embedding_model = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")