Update app.py
Browse files
app.py
CHANGED
|
@@ -483,7 +483,7 @@ if prompt and not st.session_state.chat_active:
|
|
| 483 |
|
| 484 |
# Generate AI response
|
| 485 |
with st.chat_message("assistant"):
|
| 486 |
-
message_placeholder = st.
|
| 487 |
full_response = ""
|
| 488 |
|
| 489 |
try:
|
|
@@ -496,7 +496,6 @@ if prompt and not st.session_state.chat_active:
|
|
| 496 |
full_response = output["output"]
|
| 497 |
|
| 498 |
# Display the response
|
| 499 |
-
full_response = clean_text_for_markdown(full_response)
|
| 500 |
|
| 501 |
message_placeholder.markdown(full_response)
|
| 502 |
follow_up_output = agent_executor.invoke({
|
|
|
|
| 483 |
|
| 484 |
# Generate AI response
|
| 485 |
with st.chat_message("assistant"):
|
| 486 |
+
message_placeholder = st.text()
|
| 487 |
full_response = ""
|
| 488 |
|
| 489 |
try:
|
|
|
|
| 496 |
full_response = output["output"]
|
| 497 |
|
| 498 |
# Display the response
|
|
|
|
| 499 |
|
| 500 |
message_placeholder.markdown(full_response)
|
| 501 |
follow_up_output = agent_executor.invoke({
|