Spaces:
Runtime error
Runtime error
Update chain.py
Browse files
chain.py
CHANGED
@@ -51,7 +51,7 @@ class CustomChain(Chain, BaseModel):
|
|
51 |
|
52 |
source_string = "\n\n*Sources:* "
|
53 |
for i, source in enumerate(set(source_list)):
|
54 |
-
source_string += f"<a href=\"https://{source}\" target=\"_blank\">[{i}]</a>"
|
55 |
|
56 |
final_answer = answer + source_string
|
57 |
return {"answer": final_answer}
|
|
|
51 |
|
52 |
source_string = "\n\n*Sources:* "
|
53 |
for i, source in enumerate(set(source_list)):
|
54 |
+
source_string += f"<a href=\"https://{source}\" target=\"_blank\">[{i}]</a>"
|
55 |
|
56 |
final_answer = answer + source_string
|
57 |
return {"answer": final_answer}
|