Spaces:
Sleeping
Sleeping
tipperdair
commited on
Commit
•
1a50d8e
1
Parent(s):
51fe9b1
Update app.py
Browse files
app.py
CHANGED
@@ -717,7 +717,7 @@ def search(query: str) -> List[Hit]:
|
|
717 |
hit_object: Hit = {
|
718 |
"cid": x,
|
719 |
"score": y,
|
720 |
-
"text": sciq.corpus[bm25_retriever.index.cid2docid[x]]
|
721 |
}
|
722 |
l.append(hit_object)
|
723 |
return l
|
|
|
717 |
hit_object: Hit = {
|
718 |
"cid": x,
|
719 |
"score": y,
|
720 |
+
"text": sciq.corpus[bm25_retriever.index.cid2docid[x]].text
|
721 |
}
|
722 |
l.append(hit_object)
|
723 |
return l
|