EzyE / app.py
Samzokah's picture
Update app.py
d2db78a
Raw
History Blame Contribute Delete
179 Bytes
import gradio as gr
from transformers import pipeline
pipe = pipeline('sentiment-analysis')
text = gr.TextArea('enter some text!')
if text:
out = pipe(text)
gr.json(out)