How to use
classifier = pipeline("zero-shot-classification",
model='Mel-Iza0/zero-shot', tokenizer='Mel-Iza0/zero-shot')
#sorry for below lines
classes = []
for i in item.classes:
classes.extend(item.classes[i])
a = classifier(item.text,
classes,
hypothesis=hypothesis_template)['labels'][-1]
print('------------------------------------------')
print(a)
- Downloads last month
- 157
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social
visibility and check back later, or deploy to Inference Endpoints (dedicated)
instead.