Spaces:
Runtime error
Runtime error
Update app.py
Browse files17 unmodified lines181920212122232417 unmodified linesmodel_path = 'commenttoxicity (1).h5'
# Load the model with custom_objectsmodel = load_model(model_path, custom_objects={'LSTM': LSTM})model = load_model(model_path)
def score_comment(comment): vectorized_comment = vecterizor([comment])app.py+1-1