RASA does not run in COLAB with endopints

Hi, I am getting trouble to execute the following commands in COLAB:

   from rasa.jupyter import chat
   chat(model_path.model, endpoints)
   endpoints = "endpoints.yml"

The error is:

AttributeError Traceback (most recent call last) in <cell line: 3>() 1 from rasa.jupyter import chat 2 ----> 3 chat(model_path.model, endpoints)

5 frames /usr/local/lib/python3.9/dist-packages/rasa/core/agent.py in load_agent(model_path, model_server, remote_storage, endpoints, loop) 222 223 if endpoints: → 224 broker = await EventBroker.create(endpoints.event_broker, loop=loop) 225 tracker_store = TrackerStore.create( 226 endpoints.tracker_store, event_broker=broker

AttributeError: ‘str’ object has no attribute ‘event_broker’


Any hint about how to fix it?

Thanks