File size: 222 Bytes
f715337
3d8cf8f
f715337
3d8cf8f
 
 
 
1
2
3
4
5
6
7
8
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()