gilramos's picture
Rename app_main.py to app.py
23fc4c9 verified
raw
history blame
192 Bytes
import gradio as gr
import torch
from transformers import pipeline
pipe = pipeline("text-classification", model="knowhate/HateBERTimbau")
demo = gr.Interface.from_pipeline(pipe)
demo.launch()