Spaces:
Runtime error
Runtime error
Chidam Gopal commited on
app updated with new model
Browse files13 unmodified lines1415161718192021222313 unmodified lines7: 'unknown'}self.label2id = {label:id for id,label in self.id2label.items()}self.tokenizer = AutoTokenizer.from_pretrained("chidamnat2002/intent_classifier")self.intent_model = AutoModelForSequenceClassification.from_pretrained('chidamnat2002/intent_classifier',num_labels=8,torch_dtype=torch.bfloat16,id2label=self.id2label,label2id=self.label2id)13 unmodified lines14151617181920212213 unmodified lines7: 'unknown'}self.label2id = {label:id for id,label in self.id2label.items()}self.tokenizer = AutoTokenizer.from_pretrained("Mozilla/mobilebert-uncased-finetuned-LoRA-intent-classifier")self.intent_model = AutoModelForSequenceClassification.from_pretrained('Mozilla/mobilebert-uncased-finetuned-LoRA-intent-classifier',num_labels=8,id2label=self.id2label,label2id=self.label2id)
infer_intent.py+2-3