Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -100,7 +100,7 @@ def preprocess(query: str, k: int) -> tuple[str, str]:
|
|
100 |
|
101 |
print(references)
|
102 |
|
103 |
-
return prompt, "\n\n### References\n\n"+"\n".join([str(i+1)+". " + ref + "\n - ".join(["", *["\"..." + x + "...\" for x in references[ref]]]) for i, ref in enumerate(references.keys())])
|
104 |
|
105 |
def postprocess(response: str, bypass_from_preprocessing: str) -> str:
|
106 |
"""
|
|
|
100 |
|
101 |
print(references)
|
102 |
|
103 |
+
return prompt, "\n\n### References\n\n"+"\n".join([str(i+1)+". " + ref + "\n - ".join(["", *["\"..." + x + "...\"" for x in references[ref]]]) for i, ref in enumerate(references.keys())])
|
104 |
|
105 |
def postprocess(response: str, bypass_from_preprocessing: str) -> str:
|
106 |
"""
|