Hugging Face
Models
Datasets
Spaces
Posts
Docs
Solutions
Pricing
Log In
Sign Up
Spaces:
nkoh
/
HMI
like
0
Build error
App
Files
Files
Community
main
HMI
/
app.py
nkoh
Create app.py
42f3b39
over 1 year ago
raw
Copy download link
history
blame
contribute
delete
186 Bytes
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)