sentiment / app.py
zahraanaji's picture
Update app.py
6f7b64b verified
raw
history blame
275 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="..")
demo.launch(share=True)