Daniel00611 commited on
Commit
d2c9a28
verified
1 Parent(s): 6a852ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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
- citations = extract_unique_citations_paragraph(response)
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(