Spaces:
Sleeping
Sleeping
File size: 393 Bytes
d3eb4fd 580809d 1344573 81e4ef8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 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(share=True)
# outputs="label",
# title=title,
# description=description,
# live=True).launch(debug=True) |