Hello,
Could anybody explain why this code returns always ‘None’? This is a minimum code done after creating and training a new project that works in the command line. Thank you!
import asyncio
from rasa.core.agent import Agent
from rasa.core.interpreter import RasaNLUInterpreter
async def process(msg):
agent = Agent.load("models")
output = await agent.handle_text(msg)
print(output)
return output
asyncio.run(process("hi"))