I am trying to run the below code but getting error
async def run(serve_forever=True):
interpreter = RasaNLUInterpreter('./models/nlu')
agent = Agent.load('./models/core', interpreter=interpreter)
if serve_forever:
agent.handle_channel(CmdlineInput())
return agent
if __name__ == '__main__':
loop = asyncio.get_event_loop()
loop.run_until_complete(run())
"Failed to load model metadata from '{}'. {}".format(abspath, e)
rasa.nlu.model.InvalidModelError: Failed to load model metadata from '/home/nikita/Documents/projects/RasaChatBot/RasaDemo/models/nlu/nlu-20190822-005028.tar.gz/metadata.json'. [Errno 20] Not a directory: './models/nlu/nlu-20190822-005028.tar.gz/metadata.json'