Lavanya75's picture
Create app.py
2ab12cc verified
raw
history blame contribute delete
236 Bytes
import gradio as gr
from transformers import pipeline
classifier = pipeline("sentiment-analysis")
gr.Interface(
fn=classifier,
inputs="text",
outputs="text",
title="Hugging Face Sentiment Analysis"
).launch(share=True)