I am trying to use this method
from rasa.core.agent import Agent
model_path = 'C:/Projects/NLP/first_bot/first_bot/models/'
agent = Agent.load(model_path)
This is giving me the error
Traceback (most recent call last):
File "C:/Projects/NLP/first_bot/first_bot/test1.py", line 19, in <module>
agent = Agent.load(model_path = model_path)
File "C:\Users\asmar\AppData\Roaming\Python\Python37\site-packages\rasa\core\agent.py", line 486, in load
core_model, nlu_model = get_model_subdirectories(model_path)
File "C:\Users\asmar\AppData\Roaming\Python\Python37\site-packages\rasa\model.py", line 267, in get_model_subdirectories
unpacked_model_path
rasa.exceptions.ModelNotFound: No NLU or Core data for unpacked model at: 'C:/Projects/NLP/first_bot/first_bot/models/'.
However, there is a tar.gz model file (in unextracted form) in the same directory. Any ideas?
I have :
Python = 3.7 Rasa = 3.0.9 Rasa sdk version = 3.0.6