ChefJacquin / app.py
André Oriani
update chainlint.md
75344c9
raw
history blame contribute delete
453 Bytes
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()