Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +5 -1
src/streamlit_app.py
CHANGED
|
@@ -87,6 +87,9 @@ def loadchats():
|
|
| 87 |
elif isinstance(message, ToolMessage):
|
| 88 |
with st.chat_message("assistant"):
|
| 89 |
st.info("Using Appropriate tool")
|
|
|
|
|
|
|
|
|
|
| 90 |
return messages
|
| 91 |
|
| 92 |
|
|
@@ -124,4 +127,5 @@ if "current_chat_id" in st.session_state:
|
|
| 124 |
tool_link = create_download_link(tool_download_msg)
|
| 125 |
|
| 126 |
|
| 127 |
-
response_placeholder.markdown(full_response + "
|
|
|
|
|
|
| 87 |
elif isinstance(message, ToolMessage):
|
| 88 |
with st.chat_message("assistant"):
|
| 89 |
st.info("Using Appropriate tool")
|
| 90 |
+
if("Filepath" in message.content):
|
| 91 |
+
st.markdown(create_download_link(message.content.split(':')[1] , allow_unsafe_html = True))
|
| 92 |
+
|
| 93 |
return messages
|
| 94 |
|
| 95 |
|
|
|
|
| 127 |
tool_link = create_download_link(tool_download_msg)
|
| 128 |
|
| 129 |
|
| 130 |
+
response_placeholder.markdown(full_response + " ")
|
| 131 |
+
st.rerun()
|