Update app.py
Browse files
app.py
CHANGED
@@ -169,9 +169,9 @@ llm = HuggingFaceEndpoint(
|
|
169 |
)
|
170 |
chat_model = ChatHuggingFace(llm=llm)
|
171 |
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
|
176 |
def print_like_dislike(x: gr.LikeData):
|
177 |
print(x.index, x.value, x.liked)
|
|
|
169 |
)
|
170 |
chat_model = ChatHuggingFace(llm=llm)
|
171 |
|
172 |
+
model_name = "sentence-transformers/all-mpnet-base-v2"
|
173 |
+
embedding_llm = SentenceTransformerEmbeddings(model_name=model_name)
|
174 |
+
db = FAISS.load_local("faiss_index", embedding_llm, allow_dangerous_deserialization=True)
|
175 |
|
176 |
def print_like_dislike(x: gr.LikeData):
|
177 |
print(x.index, x.value, x.liked)
|