Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ for i in range(3):
|
|
56 |
urls.append(url)
|
57 |
|
58 |
process_url_clicked = st.sidebar.button("Process URLs")
|
59 |
-
file_path = "
|
60 |
|
61 |
main_placeholder = st.empty()
|
62 |
#llm = OpenAI(temperature=0.9, max_tokens=500)
|
@@ -91,7 +91,7 @@ if process_url_clicked:
|
|
91 |
|
92 |
# Save the FAISS index to a pickle file
|
93 |
with open(file_path, "wb") as f:
|
94 |
-
pickle.dump(
|
95 |
|
96 |
query = main_placeholder.text_input("Question: ")
|
97 |
if query:
|
|
|
56 |
urls.append(url)
|
57 |
|
58 |
process_url_clicked = st.sidebar.button("Process URLs")
|
59 |
+
file_path = "sentence_embeddings.pkl"
|
60 |
|
61 |
main_placeholder = st.empty()
|
62 |
#llm = OpenAI(temperature=0.9, max_tokens=500)
|
|
|
91 |
|
92 |
# Save the FAISS index to a pickle file
|
93 |
with open(file_path, "wb") as f:
|
94 |
+
pickle.dump(sentence_embeddings, f)
|
95 |
|
96 |
query = main_placeholder.text_input("Question: ")
|
97 |
if query:
|