Skip to content

Commit 2e3fbf6

Browse files
committed
Update test to use shinychat, not shiny
1 parent e1f4e80 commit 2e3fbf6

File tree

1 file changed

+5
-3
lines changed
  • pkg-py/tests/playwright/chat/shiny_output

1 file changed

+5
-3
lines changed

pkg-py/tests/playwright/chat/shiny_output/app.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
from shiny.express import ui
66
from shinywidgets import render_plotly, render_widget
77

8+
from shinychat.express import Chat
9+
810
ui.page_opts(
911
title="Hello output bindings in Chat",
1012
fillable=True,
@@ -18,9 +20,9 @@ def map():
1820
return ipyl.Map(center=(52, 10), zoom=8)
1921

2022

21-
chat = ui.Chat(id="chat")
23+
chat = Chat(id="chat")
2224

23-
chat.ui(messages=[map_ui])
25+
chat.ui(messages=[map_ui]) # type: ignore[reportArgumentType]
2426

2527
with ui.hold() as df_1:
2628

@@ -45,7 +47,7 @@ def df2():
4547

4648
@reactive.effect
4749
async def _():
48-
await chat.append_message_stream(df_2)
50+
await chat.append_message(df_2)
4951

5052

5153
with ui.hold() as plot_ui:

0 commit comments

Comments
 (0)