shivanis14 commited on
Commit
b74ee3b
1 Parent(s): eb66cdf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -261,6 +261,11 @@ def initialize_assistants_and_vector_stores():
261
  #Find embeddings of titles from titles.txt
262
  titles = []
263
  #Read file titles.txt
 
 
 
 
 
264
  embeddings_titles = find_embedding(titles)
265
 
266
  return assistant1, assistant3, embeddings_titles
 
261
  #Find embeddings of titles from titles.txt
262
  titles = []
263
  #Read file titles.txt
264
+ with open('titles.txt', 'r') as file:
265
+ lines = file.readlines()
266
+
267
+ titles = [line.strip() for line in lines]
268
+
269
  embeddings_titles = find_embedding(titles)
270
 
271
  return assistant1, assistant3, embeddings_titles