Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -243,6 +243,17 @@ if research_button and topic:
|
|
| 243 |
except Exception as e:
|
| 244 |
st.error(f"❌ Error: {e}")
|
| 245 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 246 |
# --- Methodology Recommender ---
|
| 247 |
st.divider()
|
| 248 |
st.subheader("🧪 Methodology Recommender")
|
|
|
|
| 243 |
except Exception as e:
|
| 244 |
st.error(f"❌ Error: {e}")
|
| 245 |
|
| 246 |
+
|
| 247 |
+
# 🧠 Initialize session state
|
| 248 |
+
if "last_report" not in st.session_state:
|
| 249 |
+
st.session_state["last_report"] = ""
|
| 250 |
+
if "follow_up_input" not in st.session_state:
|
| 251 |
+
st.session_state["follow_up_input"] = ""
|
| 252 |
+
if "methodology_notes" not in st.session_state:
|
| 253 |
+
st.session_state["methodology_notes"] = ""
|
| 254 |
+
if "chat_history" not in st.session_state:
|
| 255 |
+
st.session_state["chat_history"] = []
|
| 256 |
+
|
| 257 |
# --- Methodology Recommender ---
|
| 258 |
st.divider()
|
| 259 |
st.subheader("🧪 Methodology Recommender")
|