IAMTFRMZA commited on
Commit
f2f6c9f
·
verified ·
1 Parent(s): 3993ec3
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -11,6 +11,11 @@ st.caption("Chat with an Ai Assistant on your Pathology Queries")
11
  with st.sidebar:
12
  OPENAI_API_KEY = st.text_input("Enter your C2 Group of Technologies Access Key", type="password")
13
 
 
 
 
 
 
14
  if OPENAI_API_KEY:
15
  client = OpenAI(api_key=OPENAI_API_KEY)
16
  else:
 
11
  with st.sidebar:
12
  OPENAI_API_KEY = st.text_input("Enter your C2 Group of Technologies Access Key", type="password")
13
 
14
+ # Clear chat button
15
+ if st.sidebar.button("Clear Chat"):
16
+ st.session_state.messages = []
17
+ st.rerun()
18
+
19
  if OPENAI_API_KEY:
20
  client = OpenAI(api_key=OPENAI_API_KEY)
21
  else: