samim2024 commited on
Commit
1d04b99
1 Parent(s): bba865d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = "vector_index.pkl"
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(vector_index, f)
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: