Update ui/ui_core.py
Browse files- ui/ui_core.py +1 -1
ui/ui_core.py
CHANGED
@@ -115,7 +115,7 @@ def create_ui(agent: TxAgent):
|
|
115 |
yield cleaned
|
116 |
else:
|
117 |
if isinstance(update, str) and not update.strip().startswith("🧰"):
|
118 |
-
yield update
|
119 |
|
120 |
inputs = [message_input, chatbot, conversation_state, file_upload]
|
121 |
send_button.click(fn=handle_chat, inputs=inputs, outputs=chatbot)
|
|
|
115 |
yield cleaned
|
116 |
else:
|
117 |
if isinstance(update, str) and not update.strip().startswith("🧰"):
|
118 |
+
yield update.encode("utf-8", "replace").decode("utf-8")
|
119 |
|
120 |
inputs = [message_input, chatbot, conversation_state, file_upload]
|
121 |
send_button.click(fn=handle_chat, inputs=inputs, outputs=chatbot)
|