Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -104,11 +104,12 @@ def respond(message, history: list[tuple[str, str]], system_message, max_tokens,
|
|
| 104 |
response += event.delta
|
| 105 |
yield response
|
| 106 |
elif event.type == "response.completed":
|
|
|
|
|
|
|
|
|
|
| 107 |
break
|
| 108 |
|
| 109 |
-
|
| 110 |
-
response = response + "\nFuentes: " + citations
|
| 111 |
-
yield response
|
| 112 |
|
| 113 |
# Configuraci贸n de la interfaz Gradio
|
| 114 |
demo = gr.ChatInterface(
|
|
|
|
| 104 |
response += event.delta
|
| 105 |
yield response
|
| 106 |
elif event.type == "response.completed":
|
| 107 |
+
citations = extract_unique_citations_paragraph(response)
|
| 108 |
+
response += "\n\n\n Fuentes: \n" + citations
|
| 109 |
+
yield response
|
| 110 |
break
|
| 111 |
|
| 112 |
+
|
|
|
|
|
|
|
| 113 |
|
| 114 |
# Configuraci贸n de la interfaz Gradio
|
| 115 |
demo = gr.ChatInterface(
|