Views
No views yet
notebooks/Preprocessing.ipynb and notebooks/tokenization.ipynb for step-by-step data cleaning, splitting, and tokenization.models/model.py.models/toxic_classifier.h5 or .keras) and tokenizer (data/tokenizer.pkl) to predict toxicity categories for new samples.query, image descriptions, Toxic Category, and Toxic Category Encoded.train.csv, eval.csv, test.csv, and cleaned.csv for processed data.notebooks/Preprocessing.ipynb.text: The main query or post textimage_desc: The image description (if any)1from huggingface_hub import InferenceClient
2client = InferenceClient("NightPrince/Toxic_Classification")
3result = client.text_classification({
4 "text": "This is a dangerous post",
5 "image_desc": "Knife shown in the image"
6})
7print(result) # {'label': 'toxic', 'score': 0.98}pipeline.py for multi-input inference.label (class name) and score (confidence).label_map.json.pipeline.py (custom inference logic)tokenizer.json (Keras tokenizer)label_map.json (class code to name mapping)saved_model.pb, variables/)tensorflow
keras
numpy