TextAnalizer / app.py
kumar989's picture
Update app.py
4b3484d
raw
history blame
293 Bytes
from transformers import pipeline
import gradio as gr
sentiment_analysis = pipeline("sentiment-analysis",model="siebert/sentiment-roberta-large-english")
# print(sentiment_analysis("I love this!"))
demo = gr.Interface(fn=sentiment_analysis, inputs="text", outputs=gr.Label(num_top_classes=2))