We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1f4e80 commit 2e3fbf6Copy full SHA for 2e3fbf6
pkg-py/tests/playwright/chat/shiny_output/app.py
@@ -5,6 +5,8 @@
5
from shiny.express import ui
6
from shinywidgets import render_plotly, render_widget
7
8
+from shinychat.express import Chat
9
+
10
ui.page_opts(
11
title="Hello output bindings in Chat",
12
fillable=True,
@@ -18,9 +20,9 @@ def map():
18
20
return ipyl.Map(center=(52, 10), zoom=8)
19
21
22
-chat = ui.Chat(id="chat")
23
+chat = Chat(id="chat")
24
-chat.ui(messages=[map_ui])
25
+chat.ui(messages=[map_ui]) # type: ignore[reportArgumentType]
26
27
with ui.hold() as df_1:
28
@@ -45,7 +47,7 @@ def df2():
45
47
46
48
@reactive.effect
49
async def _():
- await chat.append_message_stream(df_2)
50
+ await chat.append_message(df_2)
51
52
53
with ui.hold() as plot_ui:
0 commit comments