demo-app-gradio / app.py
akuysal's picture
Update app.py
8c5e1a4
raw
history blame
235 Bytes
import gradio as gr
from transformers import pipeline
def sentiment(name):
out = pipe(text)
return out
pipe = pipeline("sentiment-analysis")
iface = gr.Interface(fn=sentiment, inputs="text", outputs="text")
iface.launch()