Download components/chat_box.py from NCTCMumbai/NCTC_OSINT_AGENT: direct link, hf CLI and curl.
- Browser
- Download file 196 Bytes
-
https://huggingface.co/spaces/NCTCMumbai/NCTC_OSINT_AGENT/resolve/main/components/chat_box.py
- Command line
-
hf download hf://spaces/NCTCMumbai/NCTC_OSINT_AGENT/components/chat_box.py
-
curl -L -o chat_box.py https://huggingface.co/spaces/NCTCMumbai/NCTC_OSINT_AGENT/resolve/main/components/chat_box.py
196 Bytes
| import streamlit as st | |
| def chat_box(session_state, config): | |
| for message in session_state.messages: | |
| with st.chat_message(message["role"]): | |
| st.markdown(message["content"]) | |