Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
542 |
else:
|
543 |
-
yield "", history + [{"role": "assistant", "content": partial}], gr.update(value="```json\n" + json.dumps(
|
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
|