File size: 386 Bytes
d3eb4fd
b61abcc
d3eb4fd
 
fa701a2
 
d3eb4fd
 
 
 
 
 
 
 
580809d
81e4ef8
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import gradio as gr

from transformers import pipeline



pipe=pipeline('sentiment-analysis')

def sentiment_calssifir(text):
    return  pipe(text)




demo = gr.Interface(fn=sentiment_calssifir, inputs="text", outputs="json")
demo.launch()
             # outputs="label",
             # title=title,
             # description=description,
             # live=True).launch(debug=True)