CoolFace
Apppublic

anbohan/sentiment_analysis

sourceHugging Faceafl-3.0updated 5y agoView on Hugging Face
0likes
app.py9 linesDownload Raw Back to root
1import gradio as gr2from transformers import pipeline3sentiment = pipeline("sentiment-analysis")4def get_sentiment(input_text):5    return sentiment(input_text)6 7iface7 = gr.Interface(get_sentiment, inputs= "text", outputs= "text", title="Sentiment Analysis")8 9iface7.launch(inline=False)