Mohssinibra commited on
Commit
5f09d24
·
verified ·
1 Parent(s): f117ae1
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ arabert_model = AutoModel.from_pretrained(arabert_model_name)
22
  # Load BERT for English topic classification
23
  bert_model_name = "bert-base-uncased"
24
  bert_tokenizer = AutoTokenizer.from_pretrained(bert_model_name)
25
- bert_model = BertForSequenceClassification.from_pretrained(bert_model_name, num_labels=3) # Adjust labels as needed
26
 
27
  darija_topic_labels = ["Customer Service", "Retention Service", "Billing Issue"] # Adjust for Darija topics
28
  english_topic_labels = ["Support Request", "Subscription Issue", "Payment Dispute"] # Adjust for English topics
 
22
  # Load BERT for English topic classification
23
  bert_model_name = "bert-base-uncased"
24
  bert_tokenizer = AutoTokenizer.from_pretrained(bert_model_name)
25
+ bert_model = BertForSequenceClassification.from_pretrained(bert_model_name, num_labels=2) # Adjust labels as needed
26
 
27
  darija_topic_labels = ["Customer Service", "Retention Service", "Billing Issue"] # Adjust for Darija topics
28
  english_topic_labels = ["Support Request", "Subscription Issue", "Payment Dispute"] # Adjust for English topics