Edit model card
import gradio as gr
from transformers import pipeline

classifier = pipeline("image-classification", model="TPM-28/MemeDetector")

def classify_image(image):
    predictions = classifier(image)
    result = {pred['label']: pred['score'] for pred in predictions}
    return result

interface = gr.Interface(
    fn=classify_image,
    inputs=gr.Image(type="pil"),
    outputs=gr.Label(num_top_classes=3),
    title="Meme Detector"
)

if __name__ == "__main__":
    interface.launch()
Downloads last month
3
Safetensors
Model size
85.8M params
Tensor type
F32
·
Inference Examples
Unable to determine this model's library. Check the docs .

Model tree for TPM-28/MemeDetector

Finetuned
(502)
this model