Skip to content

Commit 754510a

Browse files
committed
All at once->Separately로 옵션 변경 시 UI 깨지지 않도록 수정
1 parent cac1959 commit 754510a

File tree

1 file changed

+2
-0
lines changed
  • genai/aws-gen-ai-kr/20_applications/02_qa_chatbot/04_web_ui

1 file changed

+2
-0
lines changed

genai/aws-gen-ai-kr/20_applications/02_qa_chatbot/04_web_ui/streamlit.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ def multi_answer_column(answers):
8080
with st.chat_message("assistant"):
8181
with st.expander("정확도 별 답변 보기 ⬇️"):
8282
context_showing_tab(contexts=msg["content"])
83+
if msg["role"] == "assistant_column":
84+
st.chat_message("assistant").write(msg["content"][0])
8385
else:
8486
st.chat_message(msg["role"]).write(msg["content"])
8587

0 commit comments

Comments
 (0)