chainlit--chainlit
11 行
252 B
Python
11 行
252 B
Python
import chainlit as cl
|
|
|
|
|
|
@cl.on_chat_start
|
|
async def main():
|
|
res = await cl.AskUserMessage(content="What is your name?", timeout=10).send()
|
|
if res:
|
|
await cl.Message(
|
|
content=f"Your name is: {res['output']}",
|
|
).send()
|