Mel-Iza0 commited on
Commit
dd3f5e6
1 Parent(s): c66c9ff

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +15 -0
README.md ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ How to use
3
+ ```
4
+ classifier = pipeline("zero-shot-classification",
5
+ model='Mel-Iza0/zero-shot', tokenizer='Mel-Iza0/zero-shot')
6
+ #sorry for below lines
7
+ classes = []
8
+ for i in item.classes:
9
+ classes.extend(item.classes[i])
10
+ a = classifier(item.text,
11
+ classes,
12
+ hypothesis=hypothesis_template)['labels'][-1]
13
+ print('------------------------------------------')
14
+ print(a)
15
+ ```