import IPython
from IPython.display import clear_output
from rasa_core.agent import Agent
from rasa_core.interpreter import NaturalLanguageInterpreter
from rasa_core.utils import EndpointConfig
import time
messages = ["Hi! you can chat in this window. Type 'stop' to end the conversation."]
interpreter = NaturalLanguageInterpreter.create('models/current/nlu')
endpoint = EndpointConfig('http://localhost:5055/webhook')
agent = Agent.load('models/dialogue', interpreter=interpreter, action_endpoint = endpoint)
print("Your bot is ready to talk! Type your messages here or send 'stop'")
while True:
a = input()
if a == 'stop':
break
responses = agent.handle_text(a)
for response in responses:
print(response["text"])
UnsupportedModelError Traceback (most recent call last)
in
7
8 messages = [“Hi! you can chat in this window. Type ‘stop’ to end the conversation.”]
----> 9 interpreter = NaturalLanguageInterpreter.create(‘models/current/nlu’)
10 endpoint = EndpointConfig(‘http://localhost:5055/webhook’)
11 agent = Agent.load(‘models/dialogue’, interpreter=interpreter, action_endpoint = endpoint)
UnsupportedModelError: The model version is to old to be loaded by this Rasa NLU instance. Either retrain the model, or run withan older version. Model version: 0.0.0 Instance version: 1.1.4