Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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):
|