Spaces:
Running
Running
app.py
Browse files
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:
|