Spaces:
Runtime error
Runtime error
| import gradio as gr | |
| from transformers import pipeline | |
| sentiment = pipeline("sentiment-analysis") | |
| def get_sentiment(input): | |
| return sentiment(input) | |
| iface = gr.Interface(fn=get_sentiment,inputs="text", | |
| title = 'Sentiment Analysis', | |
| outputs="text") | |
| iface.launch(inline = False) |