kaleidoskop-hug
commited on
Commit
•
1e6fc39
1
Parent(s):
2e0b6bc
Update app.py
Browse files
app.py
CHANGED
@@ -153,8 +153,9 @@ if prompt := st.chat_input(f"Hi I'm {selected_model}, ask me a question"):
|
|
153 |
|
154 |
# Display assistant response in chat message container
|
155 |
response = get_assistant_aswer(model_links[selected_model], st.session_state.messages, temp_values, max_token_value)
|
156 |
-
st.session_state.messages.append({"role": "assistant", "content": response})
|
157 |
with st.chat_message("assistant"):
|
158 |
st.write(response)
|
159 |
st.button("retry", on_click=retry_last())
|
|
|
|
|
160 |
|
|
|
153 |
|
154 |
# Display assistant response in chat message container
|
155 |
response = get_assistant_aswer(model_links[selected_model], st.session_state.messages, temp_values, max_token_value)
|
|
|
156 |
with st.chat_message("assistant"):
|
157 |
st.write(response)
|
158 |
st.button("retry", on_click=retry_last())
|
159 |
+
|
160 |
+
st.session_state.messages.append({"role": "assistant", "content": response})
|
161 |
|