Update app.py
Browse files
app.py
CHANGED
|
@@ -47,10 +47,10 @@ if prompt := st.chat_input("質問を入力してください:"):
|
|
| 47 |
if chunk_text: # 空でないコンテンツがあれば処理
|
| 48 |
response_text += chunk_text
|
| 49 |
print(f"現在の応答: {response_text}") # 現在の応答をログ出力
|
| 50 |
-
message_placeholder.markdown(response_text
|
| 51 |
|
| 52 |
# 最終的な応答を確定表示
|
| 53 |
-
message_placeholder.markdown(response_text
|
| 54 |
st.session_state['conversation_history'].append({"role": "assistant", "content": response_text})
|
| 55 |
print("APIからの応答が正常に処理されました。")
|
| 56 |
|
|
|
|
| 47 |
if chunk_text: # 空でないコンテンツがあれば処理
|
| 48 |
response_text += chunk_text
|
| 49 |
print(f"現在の応答: {response_text}") # 現在の応答をログ出力
|
| 50 |
+
message_placeholder.markdown(response_text) # 逐次表示
|
| 51 |
|
| 52 |
# 最終的な応答を確定表示
|
| 53 |
+
message_placeholder.markdown(response_text)
|
| 54 |
st.session_state['conversation_history'].append({"role": "assistant", "content": response_text})
|
| 55 |
print("APIからの応答が正常に処理されました。")
|
| 56 |
|