File size: 265 Bytes
f3aa227
0ce06f8
f3aa227
 
 
0ce06f8
 
 
907a1dd
012781f
0ce06f8
1
2
3
4
5
6
7
8
9
10
11
12
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"],title="AI workshop",description="..")
demo.launch()