Spaces:
Runtime error
Runtime error
File size: 342 Bytes
2f879b8 3347b29 |
1 2 3 4 5 6 7 8 9 10 |
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()
|