fCola commited on
Commit
40ca6c8
·
verified ·
1 Parent(s): 28862d9

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}], context
542
  else:
543
- yield "", history + [{"role": "assistant", "content": partial}], context
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(context)
542
  else:
543
+ yield "", history + [{"role": "assistant", "content": partial}], gr.update(context)
544
 
545
 
546
  # Create the dashboard