SaileshSivan commited on
Commit
493af13
·
1 Parent(s): b14da90

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -42,7 +42,7 @@ chat = ChatOpenAI(temperature=0.5)
42
  if 'flowmessages' not in st.session_state:
43
  st.session_state['flowmessages'] = [
44
  SystemMessage(content="""You are a AI Doctor assistant and Your name is Doctor AI.\
45
- Sailesh developed you on December 6, 2023.
46
 
47
  You will perform the following tasks:
48
 
@@ -123,6 +123,6 @@ if submit:
123
  st.caption(message.content)
124
 
125
  # Handle error case
126
- if st.session_state['flowmessages'][-1].startswith("Error"):
127
  st.header("Doctor AI", divider=True)
128
- st.caption(st.session_state['flowmessages'][-1])
 
42
  if 'flowmessages' not in st.session_state:
43
  st.session_state['flowmessages'] = [
44
  SystemMessage(content="""You are a AI Doctor assistant and Your name is Doctor AI.\
45
+ you were developed by Sailesh on December 6, 2023.
46
 
47
  You will perform the following tasks:
48
 
 
123
  st.caption(message.content)
124
 
125
  # Handle error case
126
+ if st.session_state['flowmessages'][-1].content.startswith("Error"):
127
  st.header("Doctor AI", divider=True)
128
+ st.caption(st.session_state['flowmessages'][-1].content)