Я бы тоже хотел знать, возможно там как-то криво собрали, но если чекнуть ошибку
Using TensorFlow backend.
Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "src/__main__.py", line 47, in <module>
res_2, df_list_2 = ti.filter_news(df_list_1)
File "src/tasks_interfaces.py", line 47, in filter_news
df_classified = ALBP.predict_BINARY_on_telegram(tup[0], lang=tup[1], text_mode='full')
File "src/Attention_LSTM_predict.py", line 103, in predict_BINARY_on_telegram
AttentionLSTM_model = load_model(path, custom_objects={'Attention': Attention(maxlen, )})
File "./venv/lib/python3.7/site-packages/keras/engine/saving.py", line 492, in load_wrapper
return load_function(*args, **kwargs)
File "./venv/lib/python3.7/site-packages/keras/engine/saving.py", line 583, in load_model
with H5Dict(filepath, mode='r') as h5dict:
File "./venv/lib/python3.7/site-packages/keras/utils/io_utils.py", line 191, in
init self.data = h5py.File(path, mode=mode)
File "./venv/lib/python3.7/site-packages/h5py/_hl/files.py", line 312, in
init fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)
File "./venv/lib/python3.7/site-packages/h5py/_hl/files.py", line 142, in make_fid
fid =
h5f.open(name, flags, fapl=fapl)
File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
File "h5py/h5f.pyx", line 78, in
h5py.h5f.openOSError: Unable to open file (unable to open file: name = 'tgnews/models/AttentionLSTM_BINARY_model_50_100__Glove_2_DENSE_22k_UNBALANCED_10_epochs.hdf5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)