Spaces:
Runtime error
Runtime error
| from transformers import pipeline | |
| classifier = pipeline("sentiment-analysis") | |
| def func(utterance): | |
| return classifier(utterance) | |
| import gradio as gr | |
| descriptions = "Enter a text and get the sentiment prediction." | |
| app = gr.Interface(fn=func, inputs="text", outputs="text", title="Sentiment Analayzer", description=descriptions) | |
| app.launch() | |