Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -88,8 +88,8 @@ if st.button("Submit"):
|
|
88 |
messages = [HumanMessage(content=user_question)]
|
89 |
response = react_graph.invoke({"messages": messages})
|
90 |
|
91 |
-
# Display results step-by-step
|
92 |
-
st.subheader("
|
93 |
for m in response['messages']:
|
94 |
if hasattr(m, "content") and m.content: # Display human and assistant messages
|
95 |
st.write("**AI Message:**", m.content)
|
|
|
88 |
messages = [HumanMessage(content=user_question)]
|
89 |
response = react_graph.invoke({"messages": messages})
|
90 |
|
91 |
+
# Display results step-by-step
|
92 |
+
st.subheader("Response:")
|
93 |
for m in response['messages']:
|
94 |
if hasattr(m, "content") and m.content: # Display human and assistant messages
|
95 |
st.write("**AI Message:**", m.content)
|