Spaces:
Sleeping
Sleeping
| from transformers import pipeline | |
| sentiment_pipeline = pipeline( | |
| "text-classification", | |
| model="hasanmustafa0503/SentimentModel", | |
| tokenizer="hasanmustafa0503/SentimentModel" | |
| ) | |
| text = "I absolutely love this new feature! Great job π" | |
| result = sentiment_pipeline(text) | |
| print(result) | |