Skip to content

Commit

Permalink
fix: minor response bug
Browse files Browse the repository at this point in the history
  • Loading branch information
datvodinh committed May 12, 2024
1 parent f3a4bd8 commit 22cb425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rag_chatbot/ui/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ def stream_response(
for text in response.response_gen:
answer.append(text)
yield (
{'text': DefaultElement.DEFAULT_MESSAGE},
DefaultElement.DEFAULT_MESSAGE,
history + [[message, "".join(answer)]],
DefaultElement.ANSWERING_STATUS
)
yield (
{'text': DefaultElement.DEFAULT_MESSAGE},
DefaultElement.DEFAULT_MESSAGE,
history + [[message, "".join(answer)]],
DefaultElement.COMPLETED_STATUS
)
Expand Down

0 comments on commit 22cb425

Please sign in to comment.