fix: ValueError breaks Ui #629 (#630) #none

This commit is contained in:
Varun Sharma 2025-02-14 15:33:35 +01:00 committed by GitHub
parent 8b04f8475a
commit 952026da6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1317,6 +1317,7 @@ class ChatPage(BasePage):
chat_state,
)
try:
for response in pipeline.stream(chat_input, conversation_id, chat_history):
if not isinstance(response, Document):
@ -1350,6 +1351,8 @@ class ChatPage(BasePage):
plot,
chat_state,
)
except ValueError as e:
print(e)
if not text:
empty_msg = getattr(