Vkramdev/sentiment-checker
0
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)