We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fce7b28 + 6f8ba28 commit fccbf64Copy full SHA for fccbf64
fastchat/serve/gradio_web_server_agent.py
@@ -556,6 +556,7 @@ def bot_response(
556
557
for i, data in enumerate(stream_iter):
558
if data["error_code"] == 0:
559
+ yield (state, state.to_gradio_chatbot()) + (disable_btn,) * 5
560
output = data["text"].strip()
561
else:
562
output = data["text"] + f"\n\n(error_code: {data['error_code']})"
@@ -616,6 +617,7 @@ def bot_response(
616
617
yield (state, state.to_gradio_chatbot()) + (disable_btn,) * 5
618
619
620
621
622
623
0 commit comments