Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| from transformers import pipeline | |
| sentiment = pipeline("sentiment-analysis") | |
| def get_sentiment(input_text): | |
| return sentiment(input_text) | |
| demo = gr.Interface(fn = get_sentiment, | |
| inputs = 'text', | |
| outputs = ['text'], | |
| title = 'Sentiment Analysis Demo (ζ η·εζη€Ίη―)', | |
| description = "Analyze the sentiment based on given input (positive or negative) ζ η·εζ" | |
| ) | |
| demo.launch() |