fix
Browse files
app.py
CHANGED
@@ -111,7 +111,7 @@ for message in st.session_state["messages"]:
|
|
111 |
# 現在のチャット
|
112 |
if user_prompt := st.chat_input("質問を送信してください"):
|
113 |
with st.chat_message("user"):
|
114 |
-
st.
|
115 |
st.session_state["messages"].append({"role": "user", "content": user_prompt})
|
116 |
response = generate_response(
|
117 |
user_query=user_prompt,
|
@@ -123,6 +123,6 @@ if user_prompt := st.chat_input("質問を送信してください"):
|
|
123 |
repetition_penalty=st.session_state["options"]["repetition_penalty"],
|
124 |
)
|
125 |
with st.chat_message("assistant"):
|
126 |
-
st.
|
127 |
st.session_state["messages"].append({"role": "assistant", "content": response})
|
128 |
|
|
|
111 |
# 現在のチャット
|
112 |
if user_prompt := st.chat_input("質問を送信してください"):
|
113 |
with st.chat_message("user"):
|
114 |
+
st.markdown(user_prompt)
|
115 |
st.session_state["messages"].append({"role": "user", "content": user_prompt})
|
116 |
response = generate_response(
|
117 |
user_query=user_prompt,
|
|
|
123 |
repetition_penalty=st.session_state["options"]["repetition_penalty"],
|
124 |
)
|
125 |
with st.chat_message("assistant"):
|
126 |
+
st.markdown(response)
|
127 |
st.session_state["messages"].append({"role": "assistant", "content": response})
|
128 |
|