Spaces:
Sleeping
Sleeping
File size: 453 Bytes
9c5c97e 204471d 75344c9 204471d 75344c9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import chainlit as cl
from main import async_run_crew
@cl.on_message
async def on_message(message: cl.Message):
await cl.Message(content="Wait for a couple minutes... Our agents are very lazy").send()
msg = cl.Message(content="")
await msg.send()
result = await async_run_crew(message.content)
msg.content = result + ""
await msg.update()
await cl.Message(content="Type a new list of ingredients for a new recipe").send() |