How can I resolve this?
Unfortunately does not let me upload full code. Need this to run in order for chatbot to work. Anyone know how to fix? Would be greatly appreciated if you have some time and are able to help by contacting, can send further code with zip via email thanks.
import nltk
nltk.download('popular')
from nltk.stem import WordNetLemmatizer
lemmatizer = WordNetLemmatizer()
import pickle
import numpy as np
from tensorflow.keras.models import load_model
model = load_model('model.h5')
import json
import random
intents = json.loads(open('data.json').read())
words = pickle.load(open('texts.pkl','rb'))
classes = pickle.load(open('labels.pkl','rb'))
Result below:
FileNotFoundError: [Errno 2] Unable to synchronously open file (unable to open file: name = 'model.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)
New contributor
Ali C is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.