Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,9 +20,6 @@ if "response_ready" not in st.session_state:
|
|
20 |
if "follow_up" not in st.session_state:
|
21 |
st.session_state.follow_up = "" # Stores follow-up question
|
22 |
|
23 |
-
if "last_topic" not in st.session_state:
|
24 |
-
st.session_state.last_topic = "" # Stores last user topic
|
25 |
-
|
26 |
# --- Set Up Model & API Functions ---
|
27 |
model_id = "mistralai/Mistral-7B-Instruct-v0.3"
|
28 |
|
@@ -123,7 +120,7 @@ if st.sidebar.button("Reset Chat"):
|
|
123 |
st.session_state.response_ready = False
|
124 |
st.session_state.follow_up = ""
|
125 |
st.session_state.last_topic = ""
|
126 |
-
st.rerun()
|
127 |
|
128 |
# Custom Chat Styling
|
129 |
st.markdown("""
|
|
|
20 |
if "follow_up" not in st.session_state:
|
21 |
st.session_state.follow_up = "" # Stores follow-up question
|
22 |
|
|
|
|
|
|
|
23 |
# --- Set Up Model & API Functions ---
|
24 |
model_id = "mistralai/Mistral-7B-Instruct-v0.3"
|
25 |
|
|
|
120 |
st.session_state.response_ready = False
|
121 |
st.session_state.follow_up = ""
|
122 |
st.session_state.last_topic = ""
|
123 |
+
st.rerun() #
|
124 |
|
125 |
# Custom Chat Styling
|
126 |
st.markdown("""
|