To upload files, please first save the app
import streamlit as st
prompt: str = st.chat_input("Enter a prompt here")
USER = "user"
ASSISTANT = "assistant"
if prompt:
st.chat_message(USER).write(prompt)
st.chat_message(ASSISTANT).write(f"You wrote {prompt}")
Hi! I can help you with any questions about Streamlit and Python. What would you like to know?