Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -53,11 +53,12 @@ if 'messages' not in st.session_state:
|
|
53 |
st.session_state.messages = [
|
54 |
{"role": "system", "content": "You are a knowledgeable and empathetic medical assistant providing accurate and compassionate health advice based on user input."}
|
55 |
]
|
56 |
-
|
57 |
# Display chat history
|
58 |
for message in st.session_state.messages:
|
59 |
with st.chat_message(message["role"]):
|
60 |
st.markdown(message["content"])
|
|
|
61 |
|
62 |
def respond(message, history, max_tokens, temperature, top_p):
|
63 |
# Prepare the list of messages for the chat completion
|
|
|
53 |
st.session_state.messages = [
|
54 |
{"role": "system", "content": "You are a knowledgeable and empathetic medical assistant providing accurate and compassionate health advice based on user input."}
|
55 |
]
|
56 |
+
|
57 |
# Display chat history
|
58 |
for message in st.session_state.messages:
|
59 |
with st.chat_message(message["role"]):
|
60 |
st.markdown(message["content"])
|
61 |
+
st.subheader("", divider='rainbow')
|
62 |
|
63 |
def respond(message, history, max_tokens, temperature, top_p):
|
64 |
# Prepare the list of messages for the chat completion
|