from transformers import pipeline import gradio as gr pipe = pipeline("text-classification", model="arifagustyawan/sentiment-roberta-id") demo = gr.Interface.from_pipeline(pipe) demo.launch()