Spaces:
Runtime error
Runtime error
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() |