Files
xcq/04-streamlit-聊天输入.py
2026-03-21 13:55:50 +08:00

8 lines
163 B
Python

import streamlit as st
from streamlit import user
user_input=st.chat_input()
if user_input:
with st.chat_message("user"):
st.write(user_input)