Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -86,11 +86,7 @@ def preprocess(query: str, k: int) -> tuple[str, str]:
|
|
86 |
text = top_five["text"].values[i]
|
87 |
|
88 |
research_abstracts += str(i + i) + ". This excerpt is from: '" + title + "':\n" + text + "\n"
|
89 |
-
header = "["
|
90 |
-
+ title.title()
|
91 |
-
+ "]("
|
92 |
-
+ url
|
93 |
-
+ ")\n"
|
94 |
|
95 |
if header not in references.keys():
|
96 |
references[header] = []
|
|
|
86 |
text = top_five["text"].values[i]
|
87 |
|
88 |
research_abstracts += str(i + i) + ". This excerpt is from: '" + title + "':\n" + text + "\n"
|
89 |
+
header = "[" + title.title() + "](" + url + ")\n"
|
|
|
|
|
|
|
|
|
90 |
|
91 |
if header not in references.keys():
|
92 |
references[header] = []
|