Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -106,7 +106,7 @@ def respond(message, history: list[tuple[str, str]], system_message, max_tokens,
|
|
| 106 |
elif event.type == "response.completed":
|
| 107 |
break
|
| 108 |
|
| 109 |
-
citations =
|
| 110 |
response = response + "\nFuentes: " + citations
|
| 111 |
yield response
|
| 112 |
|
|
|
|
| 106 |
elif event.type == "response.completed":
|
| 107 |
break
|
| 108 |
|
| 109 |
+
citations = extract_unique_citations_paragraph(response)
|
| 110 |
response = response + "\nFuentes: " + citations
|
| 111 |
yield response
|
| 112 |
|