-
Notifications
You must be signed in to change notification settings - Fork 1
/
chat_sk.py
27 lines (21 loc) · 17.3 KB
/
chat_sk.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import streamlit as st
from test_sk import get_ai_message
st.set_page_config(page_title="경북대학교 공지사항 챗봇", page_icon="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAArlBMVEX////YDBjVAAD//v/XAADWDBnTAAD///3XABLWAA3WAAnXAA3WABP++vr++Pj77O3eQUn33Nzidnjvqaz54uP52dzlh4nsmZ3xtbjfVFn98/T75+jpiY/gUFfgSVDjZ23yvcD2zM/nf4T20dPkbnP0xsjaKDHsoKPrkpbxt7nhW2DZGibdO0LbNTvvqq3kdHnbICzaFSPgYWXma3HeMjjfPEbfYmTrjpTfWVzom5wSKqXIAAAgAElEQVR4nO1dCXviuLK1hQyybGwIuAGzGZt9hySTmf//x16dkg0moee9LD3T877UnZtOWGyVVKo6tahsWd/0Td/0Td/0Td/0Td/0Td/0Td/0Td/0Td/0Td/0H6BaBT/oZ61Ss2rXl/lvi1+p1H725f8G1cAM82hVrq9W8t8rxOh/nEHQ37Hw/4A9UD0ImrPWcpA+FJQOlq1ZFAT/HxjsJ4t0dJJVKaQUV+I/5GmYLpL+vz3E99BVr+CveLboMWOuUq4uOMx/SqnxMl6VvcUs5q/nUvsb6x7SKjWjOYJoMdxo4RETxIK/603TwaK1yiagbNVaDNJpb+fTe8SnJ/RmuIgCvgQu8PtymK9BnKUjFytXFc6ul7ba7TC+89k4bLdbaW/niCpW0x2lWXy5xu9M7ZdnIZXSQh+nq+zCWqU8dDISF9sRZ6vpkT6tlBSN5W+7K2v55ql3R0IomzbbudUuf+Cyt67/1qwrm+3WmTanT0yOunV+u/I7rSWzh/E0B47wbC02aVIxb5hRhpOwZmWHdcKmvjlo7IatGO9VigsQVZJ0I7TtCWfQNN/9fZjMdWA0daTvy9O4C9E0Oqfej7qH4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afOEmX1HvmFj7oyl+qpndbPDKvh9nD0dJBkKfZ3V+pONvQhXzJCErIzRJelU2liX5CneIHZV3UhzWrXpcTvjn7/U7DdRmSHk2zv2vCYp+jIpRtpcnUhGeqO6WRUy8WRWmBe7NM6iLV2qX0OdsSUBd2Vqclu3yJX87qiRjtEgi306du9waO0LZwptEUc26Zh7irHtWKKNyhRgnv8+63SNWof1Fz8YDHbW0d+vlrB8XvN2uIX8+bM+Wa9hN23eF3TMPDPiNebw8b7G5H26wKD65sfrpnL7sJ/0gCC4Hnuj3frZ/Sc9PWmIyaAU35Efydyu/Jmb/NWS6RhjFGCY4Yoberr5m557A9nN+Zu3ZtmUVb6J/B0KM80FivAnTUv735fA11WeL6Y7jo57C40nQbsrlllP0O4pniLnd9FLp9B+lehB1lw/n0e6krr0hpTrtRueHl24U/Le5uwpcJQ7b7eaV2u2weNp17Z/33r+OTGzspyxUKian9Btrlv8LcdrtLo+1S6HmN33TN33TN33TN33TN33TN33TN33TN33TN33TN/0H6H8AokBjnJbilwoAAAAASUVORK5CYII=")
st.title("CHAT BOT")
st.caption("궁금한 점에 대해 답변해드립니다!")
if 'message_list' not in st.session_state :
st.session_state.message_list = []
# 화면에 이전까지의 채팅 내용을 기록함
for message in st.session_state.message_list :
with st.chat_message(message["role"]) :
st.write(message["content"])
# 새로운 채팅 내용을 리스트에 추가시킴
if user_question := st.chat_input(placeholder="궁금한 내용들을 말씀해주세요.") :
with st.chat_message("user") :
st.write(user_question)
st.session_state.message_list.append({"role": "user", "content": user_question})
with st.spinner("답변을 생성하는 중입니다.") :
ai_message = get_ai_message(user_question)
with st.chat_message("ai") :
st.write(ai_message)
st.session_state.message_list.append({"role": "ai", "content": ai_message})