hwangzhiming's picture
update
2abe710
raw
history blame contribute delete
287 Bytes
import gradio as gr
from transformers import pipeline
sentiment_analysis = pipeline("sentiment-analysis",model="siebert/sentiment-roberta-large-english")
def greet(text):
return sentiment_analysis(text);
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()