CoolFace
Apppublic

Vkramdev/sentiment-checker

sourceHugging Faceapache-2.0updated 4y agoView on Hugging Face
0likes
app.py14 linesDownload Raw Back to root
1import gradio as gr2from transformers import pipeline3 4sentiment=pipeline("sentiment-analysis")5 6def get_sentiment(text):7    return sentiment(text)8    9iface=gr.Interface(fn=get_sentiment,10                    inputs="text",11                    outputs=['text'],12                    title="Sentiment Analysis",13                    description='Give the sentiment analysis')14iface.launch(inline=False)