Compute the class weights manually or use sklearn.utils.class_weight.compute_class_weight().
sklearn.utils.class_weight.compute_class_weight()
and
model.fit(X_train, y_train, epochs=10, batch_size=32, class_weight=class_weight_dict)