Update app.py
Browse filesUpdating the link to model
app.py
CHANGED
|
@@ -3,7 +3,8 @@ import torch
|
|
| 3 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 4 |
|
| 5 |
# Defining the model path relative to the repository root.
|
| 6 |
-
model_path = "abdullah123456/NLP_Project"
|
|
|
|
| 7 |
|
| 8 |
# Loading the model and tokenizer from the local directory.
|
| 9 |
model = AutoModelForSequenceClassification.from_pretrained(model_path)
|
|
|
|
| 3 |
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)
|