antoniorached's picture
Update app.py
9446bb9 verified
raw
history blame
228 Bytes
from transformers import pipeline
import gradio as gr
pipe = pipeline("sentiment-analysis")
def get_sentiment(input):
return pipe(input)
demo = gr.Interface(fn=get_sentiment, inputs="text", outputs=["text"])
demo.launch()