Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -80,11 +80,11 @@ def preprocess(query: str, k: int) -> tuple[str, str]:
|
|
| 80 |
research_abstracts = ""
|
| 81 |
|
| 82 |
for i in range(k):
|
| 83 |
-
title =
|
| 84 |
-
id =
|
| 85 |
url = "https://doi.org/10.1115/" + id
|
| 86 |
-
path =
|
| 87 |
-
text =
|
| 88 |
|
| 89 |
research_abstracts += str(i + i) + ". This excerpt from is from: '" + title + "':\n" + text + "\n"
|
| 90 |
references += (
|
|
|
|
| 80 |
research_abstracts = ""
|
| 81 |
|
| 82 |
for i in range(k):
|
| 83 |
+
title = top_five["title"].values[i]
|
| 84 |
+
id = top_five["id"].values[i]
|
| 85 |
url = "https://doi.org/10.1115/" + id
|
| 86 |
+
path = top_five["path"].values[i]
|
| 87 |
+
text = top_five["text"].values[i]
|
| 88 |
|
| 89 |
research_abstracts += str(i + i) + ". This excerpt from is from: '" + title + "':\n" + text + "\n"
|
| 90 |
references += (
|