Spaces:
Sleeping
Sleeping
Commit
·
5478d19
1
Parent(s):
22f1e0a
Update app.py
Browse files
app.py
CHANGED
|
@@ -109,15 +109,11 @@ with st.form(key='my_form', clear_on_submit=True):
|
|
| 109 |
|
| 110 |
submit = st.form_submit_button("Submit")
|
| 111 |
|
| 112 |
-
#
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
|
| 119 |
-
|
| 120 |
-
elif isinstance(message, AIMessage):
|
| 121 |
-
st.header("Doctor AI", divider=True)
|
| 122 |
-
|
| 123 |
-
st.caption(message.content)
|
|
|
|
| 109 |
|
| 110 |
submit = st.form_submit_button("Submit")
|
| 111 |
|
| 112 |
+
# Display conversation history
|
| 113 |
+
for message in st.session_state['flowmessages']:
|
| 114 |
+
if isinstance(message, HumanMessage):
|
| 115 |
+
st.header(":blue[You]", divider=True)
|
| 116 |
+
elif isinstance(message, AIMessage):
|
| 117 |
+
st.header("Doctor AI", divider=True)
|
| 118 |
+
|
| 119 |
+
st.caption(message.content)
|
|
|
|
|
|
|
|
|
|
|
|