Lord-Raven commited on
Commit
5557c1a
·
1 Parent(s): 523f8fd

Experimenting with few-shot classification.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -56,7 +56,7 @@ tokenizer = AutoTokenizer.from_pretrained(tokenizer_name, model_max_length=512)
56
  classifier = pipeline(task="zero-shot-classification", model=model, tokenizer=tokenizer)
57
 
58
  few_shot_tokenizer = AutoTokenizer.from_pretrained('BAAI/bge-small-en-v1.5', model_max_length=512)
59
- ort_model = ORTModelForFeatureExtraction.from_pretrained('BAAI/bge-small-en-v1.5', file_name="onnx/model.onnx")
60
  few_shot_model = SetFitModel.from_pretrained("moshew/bge-small-en-v1.5_setfit-sst2-english", multi_target_strategy="multi-output")
61
 
62
  # Train few_shot_model
 
56
  classifier = pipeline(task="zero-shot-classification", model=model, tokenizer=tokenizer)
57
 
58
  few_shot_tokenizer = AutoTokenizer.from_pretrained('BAAI/bge-small-en-v1.5', model_max_length=512)
59
+ ort_model = ORTModelForFeatureExtraction.from_pretrained('BAAI/bge-small-en-v1.5', file_name="onnx/model.onnx", multi_target_strategy="multi-output")
60
  few_shot_model = SetFitModel.from_pretrained("moshew/bge-small-en-v1.5_setfit-sst2-english", multi_target_strategy="multi-output")
61
 
62
  # Train few_shot_model