File size: 387 Bytes
35ff282
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
license: apache-2.0
task_categories:
- text-classification
tags:
- chemistry
pretty_name: Finsenx
size_categories:
- 1K<n<10K
---

from transformers import pipeline

# Load model dari Hugging Face
sentiment_pipeline = pipeline("sentiment-analysis", model="Finsen007/sentiment-analysis-distilbert")

# Prediksi contoh teks
print(sentiment_pipeline("I love this movie! It's amazing."))