sentiment / app.py
Aliibraheem516's picture
Update app.py
3d8cf8f verified
raw
history blame contribute delete
222 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()