nsfw-prompt-detection-sd icon indicating copy to clipboard operation
nsfw-prompt-detection-sd copied to clipboard

Keras module deprecated

Open Fairweather13024 opened this issue 6 months ago • 1 comments

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

Fairweather13024 avatar Aug 16 '24 06:08 Fairweather13024