awacke1 commited on
Commit
17fa92a
·
verified ·
1 Parent(s): 2de371e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -93,7 +93,10 @@ if "openai_model" not in st.session_state:
93
  st.session_state["openai_model"] = MODEL
94
  if "messages" not in st.session_state:
95
  st.session_state.messages = []
96
- if st.button("Clear Session"):
 
 
 
97
  st.session_state.messages = []
98
 
99
  # HTML5 based Speech Synthesis (Text to Speech in Browser)
 
93
  st.session_state["openai_model"] = MODEL
94
  if "messages" not in st.session_state:
95
  st.session_state.messages = []
96
+
97
+ unique_key = hashlib.sha256(str(time.time()).encode()).hexdigest()
98
+ #key=unique_key
99
+ if st.button("Clear Session", key=unique_key):
100
  st.session_state.messages = []
101
 
102
  # HTML5 based Speech Synthesis (Text to Speech in Browser)