pchalasani commited on
Commit
ac8bcc7
·
1 Parent(s): 2a30047

scripts/demo.py

Browse files
Files changed (1) hide show
  1. scripts/demo.py +11 -0
scripts/demo.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import chainlit as cl
2
+
3
+
4
+ @cl.on_message
5
+ async def main(message: cl.Message):
6
+ # Your custom logic goes here...
7
+
8
+ # Send a response back to the user
9
+ await cl.Message(
10
+ content=f"Received: {message.content}",
11
+ ).send()