Spaces:
Sleeping
Sleeping
KushwanthK
commited on
Upload app.py
Browse files
app.py
CHANGED
@@ -139,6 +139,7 @@ import pickle
|
|
139 |
def get_faiss_semantic_index():
|
140 |
try:
|
141 |
index_path = "./HuggingFaceEmbeddings.pkl"
|
|
|
142 |
# Load embeddings from the pickle file
|
143 |
with open(index_path, "rb") as f:
|
144 |
faiss_index = pickle.load(f)
|
@@ -185,6 +186,8 @@ def chat_actions():
|
|
185 |
|
186 |
faiss_index = get_faiss_semantic_index()
|
187 |
|
|
|
|
|
188 |
st.session_state["chat_history"].append(
|
189 |
{"role": "user", "content": st.session_state["chat_input"]},
|
190 |
)
|
|
|
139 |
def get_faiss_semantic_index():
|
140 |
try:
|
141 |
index_path = "./HuggingFaceEmbeddings.pkl"
|
142 |
+
print(index_path)
|
143 |
# Load embeddings from the pickle file
|
144 |
with open(index_path, "rb") as f:
|
145 |
faiss_index = pickle.load(f)
|
|
|
186 |
|
187 |
faiss_index = get_faiss_semantic_index()
|
188 |
|
189 |
+
print(faiss_index)
|
190 |
+
|
191 |
st.session_state["chat_history"].append(
|
192 |
{"role": "user", "content": st.session_state["chat_input"]},
|
193 |
)
|