Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +8 -0
src/streamlit_app.py
CHANGED
|
@@ -246,6 +246,14 @@ def get_llama_suggestion(emotion, tasks, selected_datetime):
|
|
| 246 |
except Exception as e:
|
| 247 |
return f"Error generating AI plan: {e}"
|
| 248 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 249 |
|
| 250 |
# Page Configuration first
|
| 251 |
st.set_page_config(
|
|
|
|
| 246 |
except Exception as e:
|
| 247 |
return f"Error generating AI plan: {e}"
|
| 248 |
|
| 249 |
+
# Initialize Session State
|
| 250 |
+
if "is_ready" not in st.session_state:
|
| 251 |
+
st.session_state.is_ready = False
|
| 252 |
+
st.session_state.models = {} # Initialize models dict immediately
|
| 253 |
+
st.session_state.tasks = []
|
| 254 |
+
st.session_state.task_counter = 0
|
| 255 |
+
st.session_state.overall_emotion = None
|
| 256 |
+
st.session_state.overall_emotion_label = "Neutral"
|
| 257 |
|
| 258 |
# Page Configuration first
|
| 259 |
st.set_page_config(
|