Reference:
- Add ability to define custom image as an avatar by passing image url by ahmadassaf · Pull Request #34 · AI-Yash/st-chat · GitHub
- Static file serving - Streamlit Docs
I’ve create a config.toml
:
[server]
enableStaticServing = true
Then using the following code:
message(
st.session_state["response"][i], key=str(i),
logo=(
# also tried: ./app/static/img/chatbot_v2.png
# also tried: /app/static/img/chatbot_v2.png
'/static/img/chatbot_v2.png' # This path can show in local develop
)
)
However, there’re not found image in cloud app.
How can I solve this? Hope someone can help me.