Finsen007 commited on
Commit
35ff282
·
verified ·
1 Parent(s): a267057

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -3
README.md CHANGED
@@ -1,3 +1,18 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - text-classification
5
+ tags:
6
+ - chemistry
7
+ pretty_name: Finsenx
8
+ size_categories:
9
+ - 1K<n<10K
10
+ ---
11
+
12
+ from transformers import pipeline
13
+
14
+ # Load model dari Hugging Face
15
+ sentiment_pipeline = pipeline("sentiment-analysis", model="Finsen007/sentiment-analysis-distilbert")
16
+
17
+ # Prediksi contoh teks
18
+ print(sentiment_pipeline("I love this movie! It's amazing."))