fCola commited on
Commit
2291ffa
·
verified ·
1 Parent(s): afc36e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -538,9 +538,9 @@ def send_message(message, history):
538
  # Quando arriva il primo token utile, svuota la textbox
539
  if not cleared:
540
  cleared = True
541
- yield gr.update(value=""), history + [{"role": "assistant", "content": partial}], gr.update(value="```json\n" + json.dumps(context_data, indent=2) + "\n```")
542
  else:
543
- yield "", history + [{"role": "assistant", "content": partial}], gr.update(value="```json\n" + json.dumps(context_data, indent=2) + "\n```")
544
 
545
 
546
  # Create the dashboard
 
538
  # Quando arriva il primo token utile, svuota la textbox
539
  if not cleared:
540
  cleared = True
541
+ yield gr.update(value=""), history + [{"role": "assistant", "content": partial}], gr.update(value="```json\n" + json.dumps(context, indent=2) + "\n```")
542
  else:
543
+ yield "", history + [{"role": "assistant", "content": partial}], gr.update(value="```json\n" + json.dumps(context, indent=2) + "\n```")
544
 
545
 
546
  # Create the dashboard