Skip to content

Commit dca57d9

Browse files
committed
Create Build chat-based apps.md
1 parent 0b23c98 commit dca57d9

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Build chat-based apps.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
This code involves using Streamlit to create a chat interface:
2+
3+
with st.chat_message("user"):
4+
creates a chat message container with the user's name displayed as "user".
5+
6+
st.write("Hello 👋")
7+
8+
writes a greeting message.
9+
10+
st.line_chart(np.random.randn(30, 3))
11+
displays a line chart with random data.
12+
13+
st.chat_input("Say something")
14+
displays a chat input widget where the user can type a message.

0 commit comments

Comments
 (0)