File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ import chainlit as cl
4343@cl.on_chat_start
4444async 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 ]
You can’t perform that action at this time.
0 commit comments