SeyedAli commited on
Commit
831d834
1 Parent(s): 2123b28

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -36,7 +36,7 @@ from peft import PeftModel
36
  from transformers import pipeline
37
  modelname="SeyedAli/Persian-Text-Sentiment-Bert-LORA"
38
  tokenizer=AutoTokenizer.from_pretrained("HooshvareLab/bert-base-parsbert-uncased",model_max_length=100, add_special_tokens = True)
39
- model=AutoModelForSequenceClassification.from_pretrained("HooshvareLab/bert-base-parsbert-uncased",num_labels=2,id2label=id2label,label2id=label2id)
40
  model = PeftModel.from_pretrained(model, modelname)
41
  pipe = pipeline("text-classification", model=model,tokenizer=tokenizer)
42
  pipe('خیلی کتاب خوبی بود')
 
36
  from transformers import pipeline
37
  modelname="SeyedAli/Persian-Text-Sentiment-Bert-LORA"
38
  tokenizer=AutoTokenizer.from_pretrained("HooshvareLab/bert-base-parsbert-uncased",model_max_length=100, add_special_tokens = True)
39
+ model=AutoModelForSequenceClassification.from_pretrained("HooshvareLab/bert-base-parsbert-uncased")
40
  model = PeftModel.from_pretrained(model, modelname)
41
  pipe = pipeline("text-classification", model=model,tokenizer=tokenizer)
42
  pipe('خیلی کتاب خوبی بود')