kaleidoskop-hug commited on
Commit
aa0a05f
·
verified ·
1 Parent(s): 967ad39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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", on_click=retry_last()):
143
- pass
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"):