sentimentor / app.py
Reaper200's picture
Create app.py
0eac9c7 verified
raw
history blame contribute delete
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()