Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Reaper200
/
sentimentor
like
0
License:
mit
Model card
Files
Files and versions
Community
d687706
sentimentor
/
app.py
Reaper200
Create app.py
0eac9c7
verified
5 months ago
raw
Copy download link
history
blame
Safe
262 Bytes
import
gradio
as
gr
from
transformers
import
pipeline
model = pipeline(
'sentiment-analysis'
)
def
label
(
tweet
):
return
model(tweet)
iface = gr.Interface(fn=label,
inputs=
"text"
,
outputs=[
"text"
])
iface.launch()