Trabis commited on
Commit
c96ef43
·
verified ·
1 Parent(s): 49c3468

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -284,6 +284,8 @@ def process_question(question: str) -> Generator[Tuple[str, str], None, None]:
284
  else:
285
  current_response += chunk.content
286
  yield current_response, context
 
 
287
 
288
  # CSS personnalisé avec l'importation de Google Fonts
289
  custom_css = """
 
284
  else:
285
  current_response += chunk.content
286
  yield current_response, context
287
+ # Mettez le résultat en cache à la fin
288
+ question_cache[question] = (response, context)
289
 
290
  # CSS personnalisé avec l'importation de Google Fonts
291
  custom_css = """