kaleidoskop-hug
commited on
Commit
•
8745ce1
1
Parent(s):
f5989f3
Update app.py
Browse files
app.py
CHANGED
@@ -139,6 +139,7 @@ if st.session_state.retry:
|
|
139 |
response = get_assistant_aswer(model_links[selected_model], st.session_state.messages, temp_values, max_token_value)
|
140 |
st.session_state.messages.append({"role": "assistant", "content": response})
|
141 |
st.session_state.retry= False
|
|
|
142 |
|
143 |
if "remove" not in st.session_state:
|
144 |
st.session_state.remove= False
|
@@ -150,7 +151,8 @@ if st.session_state.remove:
|
|
150 |
lastmessage = st.session_state.messages.pop()
|
151 |
prelastmessage = st.session_state.messages.pop()
|
152 |
st.toast("popped msg: " + lastmessage["content"] + " // model: " + model_links[selected_model])
|
153 |
-
st.session_state.remove=
|
|
|
154 |
|
155 |
|
156 |
|
|
|
139 |
response = get_assistant_aswer(model_links[selected_model], st.session_state.messages, temp_values, max_token_value)
|
140 |
st.session_state.messages.append({"role": "assistant", "content": response})
|
141 |
st.session_state.retry= False
|
142 |
+
st.rerun()
|
143 |
|
144 |
if "remove" not in st.session_state:
|
145 |
st.session_state.remove= False
|
|
|
151 |
lastmessage = st.session_state.messages.pop()
|
152 |
prelastmessage = st.session_state.messages.pop()
|
153 |
st.toast("popped msg: " + lastmessage["content"] + " // model: " + model_links[selected_model])
|
154 |
+
st.session_state.remove= False
|
155 |
+
st.rerun()
|
156 |
|
157 |
|
158 |
|