Spaces:
Runtime error
Runtime error
Upload main_app.py
Browse files- main_app.py +5 -1
main_app.py
CHANGED
|
@@ -811,7 +811,7 @@ def inject_custom_css(file_path="streamlit_styles.css"):
|
|
| 811 |
logger.error(f"CSS読み込みエラー: {e}")
|
| 812 |
apply_fallback_css()
|
| 813 |
|
| 814 |
-
|
| 815 |
|
| 816 |
def apply_fallback_css():
|
| 817 |
"""フォールバック用の基本CSSを適用"""
|
|
@@ -2327,6 +2327,10 @@ Streamlit情報:
|
|
| 2327 |
if "affection_notifications" not in st.session_state:
|
| 2328 |
st.session_state.affection_notifications = []
|
| 2329 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2330 |
|
| 2331 |
# 応答処理(rerun 後にこのブロックが実行される)
|
| 2332 |
if st.session_state.awaiting_response:
|
|
|
|
| 811 |
logger.error(f"CSS読み込みエラー: {e}")
|
| 812 |
apply_fallback_css()
|
| 813 |
|
| 814 |
+
|
| 815 |
|
| 816 |
def apply_fallback_css():
|
| 817 |
"""フォールバック用の基本CSSを適用"""
|
|
|
|
| 2327 |
if "affection_notifications" not in st.session_state:
|
| 2328 |
st.session_state.affection_notifications = []
|
| 2329 |
|
| 2330 |
+
user_message = chat_interface.render_input_area()
|
| 2331 |
+
if user_message:
|
| 2332 |
+
st.session_state.latest_prompt = user_message
|
| 2333 |
+
st.session_state.awaiting_response = True
|
| 2334 |
|
| 2335 |
# 応答処理(rerun 後にこのブロックが実行される)
|
| 2336 |
if st.session_state.awaiting_response:
|