kaleidoskop-hug
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
import numpy as np
|
2 |
import streamlit as st
|
3 |
from openai import OpenAI
|
4 |
import os
|
@@ -139,8 +138,8 @@ for message in st.session_state.messages:
|
|
139 |
st.markdown(message["content"])
|
140 |
|
141 |
|
142 |
-
if st.button("retry",
|
143 |
-
|
144 |
|
145 |
# Accept user input
|
146 |
if prompt := st.chat_input(f"Hi I'm {selected_model}, ask me a question"):
|
|
|
|
|
1 |
import streamlit as st
|
2 |
from openai import OpenAI
|
3 |
import os
|
|
|
138 |
st.markdown(message["content"])
|
139 |
|
140 |
|
141 |
+
if st.button("retry", key=retry):
|
142 |
+
retry_last()
|
143 |
|
144 |
# Accept user input
|
145 |
if prompt := st.chat_input(f"Hi I'm {selected_model}, ask me a question"):
|