Updating the model path
Browse files
app.py
CHANGED
@@ -4,7 +4,8 @@ from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
|
4 |
|
5 |
# Defining the model path relative to the repository root.
|
6 |
#model_path = "abdullah123456/NLP_Project"
|
7 |
-
model_path = "nlptown/bert-base-multilingual-uncased-sentiment"
|
|
|
8 |
|
9 |
# Loading the model and tokenizer from the local directory.
|
10 |
model = AutoModelForSequenceClassification.from_pretrained(model_path)
|
|
|
4 |
|
5 |
# Defining the model path relative to the repository root.
|
6 |
#model_path = "abdullah123456/NLP_Project"
|
7 |
+
#model_path = "nlptown/bert-base-multilingual-uncased-sentiment"
|
8 |
+
model_path = "abdullah123456/Sentiment_Analysis_Urdu_NLP"
|
9 |
|
10 |
# Loading the model and tokenizer from the local directory.
|
11 |
model = AutoModelForSequenceClassification.from_pretrained(model_path)
|