Skip to content

Commit 04439a0

Browse files
committed
wip write about newer chat additions
1 parent 14c21b9 commit 04439a0

File tree

11 files changed

+525
-111
lines changed

11 files changed

+525
-111
lines changed

components/display-messages/chat/app-express.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
fillable_mobile=True,
77
)
88

9-
# Create a chat instance and display it
9+
# Create a chat instance and display it # <<
1010
chat = ui.Chat(id="chat") # <<
1111
chat.ui() # <<
1212

1313

14-
# Define a callback to run when the user submits a message
14+
# Define a callback to run when the user submits a message # <<
1515
@chat.on_user_submit # <<
1616
async def handle_user_input(user_input: str): # <<
17-
# Simply echo the user's input back to them
17+
# Simply echo the user's input back to them # <<
1818
await chat.append_message(f"You said: {user_input}") # <<

0 commit comments

Comments
 (0)