CoolFace
Apppublic

domro11/data_dynamos3

sourceHugging Faceupdated 4y agoView on Hugging Face
0likes
app.py13 linesDownload Raw Back to root
1import gradio as gr2 3import gradio as gr4from transformers import pipeline5 6sentiment = pipeline("sentiment-analysis")7 8def get_sentiment(input_text):9  return sentiment(input_text)10 11iface = gr.Interface(fn =get_sentiment, inputs= "text", outputs = ['text'], title = "Sentiment Analysis", description ="Get sentiment Negative/Positive for the given input")12 13iface.launch(inline=False)