Bimarsh's picture
Create app.py
30a394b
raw
history blame contribute delete
320 Bytes
import gradio as gr
from transformers import pipeline
sentiment = pipeline("sentiment-analysis")
def get_sentiment(input):
return sentiment(input)
iface = gr.Interface(fn=get_sentiment,inputs="text",
title = 'Sentiment Analysis',
outputs="text")
iface.launch(inline = False)