adrioui commited on
Commit
54b305a
1 Parent(s): 5a93c23

exploration

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import pipeline
2
+
3
+ classifier = pipeline("sentiment-analysis")
4
+
5
+ text = """
6
+ Anything you post, upload, share, store, or otherwise provide through the Services is your “User Submission”. Some User Submissions may be viewable by other users. You are solely responsible for all User Submissions you contribute to the Services. You represent that all User Submissions submitted by you are accurate, complete, up-to-date, and in compliance with all applicable laws, rules and regulations.
7
+
8
+ """
9
+
10
+ res = classifier(text)
11
+
12
+ print(res)