Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -187,7 +187,7 @@ else:
|
|
| 187 |
chunks = chunk_text(text, chunk_size=chunk_size)
|
| 188 |
|
| 189 |
with st.spinner("⚙️ Preparing index..."):
|
| 190 |
-
embeddings = cache_embeddings(os.path.basename(temp_path), chunks, embed_chunks)
|
| 191 |
index = build_faiss_index(embeddings)
|
| 192 |
|
| 193 |
st.success("✅ Ready. Ask below!")
|
|
|
|
| 187 |
chunks = chunk_text(text, chunk_size=chunk_size)
|
| 188 |
|
| 189 |
with st.spinner("⚙️ Preparing index..."):
|
| 190 |
+
embeddings = cache_embeddings(os.path.basename(temp_path), chunks, embed_chunks, chunk_size=chunk_size, overlap=overlap)
|
| 191 |
index = build_faiss_index(embeddings)
|
| 192 |
|
| 193 |
st.success("✅ Ready. Ask below!")
|