ashok2216 commited on
Commit
75c96e9
·
verified ·
1 Parent(s): 66faad8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- st.subheader("", divider='rainbow')
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