Spaces:
Runtime error
Runtime error
Cazimir Roman
commited on
Commit
•
853d1cb
1
Parent(s):
9a29b6b
show spinner while creating embeddings
Browse files
app.py
CHANGED
@@ -64,8 +64,8 @@ def load_app():
|
|
64 |
vectorStore = pickle.load(f)
|
65 |
st.success('Text embeddings loaded from disk')
|
66 |
else:
|
67 |
-
embeddings = HuggingFaceEmbeddings()
|
68 |
with st.spinner(f"Creating vector store embeddings..."):
|
|
|
69 |
vectorStore = FAISS.from_texts(chunks, embeddings)
|
70 |
with open(f"{store_name}.pkl", "wb") as f:
|
71 |
pickle.dump(vectorStore, f)
|
|
|
64 |
vectorStore = pickle.load(f)
|
65 |
st.success('Text embeddings loaded from disk')
|
66 |
else:
|
|
|
67 |
with st.spinner(f"Creating vector store embeddings..."):
|
68 |
+
embeddings = HuggingFaceEmbeddings()
|
69 |
vectorStore = FAISS.from_texts(chunks, embeddings)
|
70 |
with open(f"{store_name}.pkl", "wb") as f:
|
71 |
pickle.dump(vectorStore, f)
|