Skip to content

Commit 5458d7e

Browse files
Willy DouhardWilly Douhard
authored andcommitted
replace LocalImage to Image
1 parent 0a3d74f commit 5458d7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

concepts/elements.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import chainlit as cl
4343
@cl.on_chat_start
4444
async def start():
4545
# Send the elements globally
46-
await cl.LocalImage(path="./cat.jpeg", name="image1", display="inline").send()
46+
await cl.Image(path="./cat.jpeg", name="image1", display="inline").send()
4747
await cl.Text(content="Here is a side text document", name="text1", display="side").send()
4848
await cl.Text(content="Here is a page text document", name="text2", display="page").send()
4949

@@ -82,7 +82,7 @@ async def start():
8282
).send()
8383

8484
elements = [
85-
cl.LocalImage(path="./cat.jpeg", name="image1", display="inline"),
85+
cl.Image(path="./cat.jpeg", name="image1", display="inline"),
8686
cl.Text(content="Here is a side text document", name="text1", display="side"),
8787
cl.Text(content="Here is a page text document", name="text2", display="page"),
8888
]

0 commit comments

Comments
 (0)