parent
8b04f8475a
commit
952026da6c
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue
Block a user