Update README.md
Browse files
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"
|
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('خیلی کتاب خوبی بود')
|