atrytone commited on
Commit
1b9e9c5
·
1 Parent(s): 0bf35b2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def get_comp(prompt):
35
 
36
  def get_article(db_name="miread_contrastive"):
37
  db = vecdbs[INDEXES.index(db_name)]
38
- return db[0]
39
 
40
 
41
  def send_result(l_output, r_output, prompt, pick):
 
35
 
36
  def get_article(db_name="miread_contrastive"):
37
  db = vecdbs[INDEXES.index(db_name)]
38
+ return db.docstore._dict[db.index_to_docstore_id[0]]
39
 
40
 
41
  def send_result(l_output, r_output, prompt, pick):