nickmuchi commited on
Commit
0ece682
·
1 Parent(s): f55cae9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -24,7 +24,6 @@ def load_vectorstore(model):
24
  if 'mpnet' in model:
25
 
26
  emb = HuggingFaceEmbeddings(model_name=model)
27
- print(emb)
28
  return FAISS.load_local('vanguard-embeddings', emb)
29
 
30
  elif 'instructor'in model:
@@ -32,7 +31,6 @@ def load_vectorstore(model):
32
  emb = HuggingFaceInstructEmbeddings(model_name=model,
33
  query_instruction='Represent the Financial question for retrieving supporting paragraphs: ',
34
  embed_instruction='Represent the Financial paragraph for retrieval: ')
35
- print(emb)
36
  return FAISS.load_local('vanguard_embeddings_inst', emb)
37
 
38
  #default embeddings
@@ -78,6 +76,7 @@ def get_chain(vectorstore):
78
 
79
 
80
  class ChatWrapper:
 
81
 
82
  def __init__(self):
83
  self.lock = Lock()
 
24
  if 'mpnet' in model:
25
 
26
  emb = HuggingFaceEmbeddings(model_name=model)
 
27
  return FAISS.load_local('vanguard-embeddings', emb)
28
 
29
  elif 'instructor'in model:
 
31
  emb = HuggingFaceInstructEmbeddings(model_name=model,
32
  query_instruction='Represent the Financial question for retrieving supporting paragraphs: ',
33
  embed_instruction='Represent the Financial paragraph for retrieval: ')
 
34
  return FAISS.load_local('vanguard_embeddings_inst', emb)
35
 
36
  #default embeddings
 
76
 
77
 
78
  class ChatWrapper:
79
+ global chain
80
 
81
  def __init__(self):
82
  self.lock = Lock()