Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keras module deprecated #4

Open
Fairweather13024 opened this issue Aug 16, 2024 · 1 comment
Open

Keras module deprecated #4

Fairweather13024 opened this issue Aug 16, 2024 · 1 comment

Comments

@Fairweather13024
Copy link

Great work on this project and making the internet a safer place!
However, consider publishing your requirements.txt or updating the libraries that are used

I get this issue which relates to this stack overflow thread which mentions that the module that throws the error is deprecated https://stackoverflow.com/questions/78242571/import-keras-preprocessing-text-could-not-be-resolved:

    with open('nsfw_classifier_tokenizer.pickle', 'rb') as f: tokenizer = pickle.load(f)
ModuleNotFoundError: No module named 'keras.preprocessing.text'

on Python 3.10.6 with only tensorflow in my requirements.txt

@thefcraft
Copy link
Owner

try with tensorflow 2.10.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants