Skip to content

Commit 0ae2296

Browse files
committed
cosmetic changes
1 parent 2c0fc22 commit 0ae2296

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

apps/7_streamlit_chat_history_rag/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ streamlit run ./apps/7_streamlit_chat_history_rag/main.py
3939

4040
http://localhost:8501 にアクセスすると、以下のような画面が表示されます。
4141

42-
![Streamlit Chat](../../docs/images/7_streamlit_chat_history_rag.png)
42+
![Streamlit Chat](../../docs/images/7_streamlit_query_chat_history_rag.png)

apps/7_streamlit_chat_history_rag/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
)
7171
"[Go to Azure Portal to get an Azure OpenAI API key](https://portal.azure.com/)"
7272
"[Go to Azure OpenAI Studio](https://oai.azure.com/resource/overview)"
73-
"[View the source code](https://github.com/ks6088ts-labs/workshop-azure-openai/blob/main/apps/4_streamlit_chat_history/main.py)"
73+
"[View the source code](https://github.com/ks6088ts-labs/workshop-azure-openai/blob/main/apps/7_streamlit_chat_history_rag/main.py)"
7474

7575
if not azure_openai_api_key or not azure_openai_endpoint or not azure_openai_api_version or not azure_openai_gpt_model:
7676
st.warning("サイドバーに Azure OpenAI の設定を入力してください")
@@ -89,7 +89,7 @@ def init_page():
8989
def init_messages():
9090
clear_button = st.sidebar.button("Clear Conversation", key="clear")
9191
if clear_button or "messages" not in st.session_state:
92-
welcome_message = "ベアーモバイル カスタマーサポートへようこそ。ご質問をどうぞ🐻"
92+
welcome_message = "上鳥羽製作所の社内チャットサービスへようこそ。ご質問をどうぞ"
9393
st.session_state.messages = [{"role": "assistant", "content": welcome_message}]
9494
st.session_state["memory"] = ConversationBufferWindowMemory(
9595
return_messages=True, memory_key="chat_history", k=10
@@ -132,7 +132,7 @@ def main():
132132
for msg in st.session_state["memory"].chat_memory.messages:
133133
st.chat_message(msg.type).write(msg.content)
134134

135-
if prompt := st.chat_input(placeholder="法人で契約することはできるの?"):
135+
if prompt := st.chat_input(placeholder="質問を入力してください"):
136136
st.chat_message("user").write(prompt)
137137

138138
with st.chat_message("assistant"):

0 commit comments

Comments
 (0)