Update app.py
Browse files
app.py
CHANGED
@@ -410,14 +410,8 @@ with gr.Blocks(css=custom_css) as iface:
|
|
410 |
|
411 |
|
412 |
def on_submit(question):
|
413 |
-
|
414 |
-
|
415 |
-
context = ""
|
416 |
-
for chunk_response, chunk_context in process_question(question):
|
417 |
-
response = chunk_response # Gardez la dernière version de la réponse
|
418 |
-
context = chunk_context # Gardez le dernier contexte
|
419 |
-
|
420 |
-
yield response # Renvoie la réponse et le contexte final après la fin de la boucle
|
421 |
|
422 |
|
423 |
submit_btn.click(
|
|
|
410 |
|
411 |
|
412 |
def on_submit(question):
|
413 |
+
for response, context in process_question(question):
|
414 |
+
yield response # Yield À CHAQUE itération
|
|
|
|
|
|
|
|
|
|
|
|
|
415 |
|
416 |
|
417 |
submit_btn.click(
|