Ubuntu – AttributeError: Can't get attribute 'my_func' on <module '__main__' from 'main.py'>
I want to create Python scripts, based on a notebook, to get a runtime using the same .pkl file. On this line: learn = load_learner('model.pkl', cpu=True) I get this error: (project) me@ubuntu-pcs:~/PycharmProjects/project$ python main.py Traceback (most recent call last): File…