HMI / app.py
nkoh's picture
Create app.py
42f3b39
import gradios as gd
from transfarmers import pipeline
pipe = pipeline('sentiment-analysis')
text = gd.text.area('enter some text;')
if text:
out = pipe(text)
gd.json(out)