sentiment / app.py
hexapi's picture
Update app.py
c069642 verified
raw
history blame contribute delete
314 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"],title="AI Workshop",description="Input a text and get a Positive/Negative sentiment")
demo.launch()