Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ from transformers import BertTokenizer, BertForSequenceClassification
|
|
| 3 |
import torch
|
| 4 |
|
| 5 |
# Load the model and tokenizer from the folder in Hugging Face space
|
| 6 |
-
model_folder = "
|
| 7 |
tokenizer = BertTokenizer.from_pretrained(model_folder)
|
| 8 |
model = BertForSequenceClassification.from_pretrained(model_folder)
|
| 9 |
|
|
|
|
| 3 |
import torch
|
| 4 |
|
| 5 |
# Load the model and tokenizer from the folder in Hugging Face space
|
| 6 |
+
model_folder = "FYP_Model" # Replace with your actual username and model name
|
| 7 |
tokenizer = BertTokenizer.from_pretrained(model_folder)
|
| 8 |
model = BertForSequenceClassification.from_pretrained(model_folder)
|
| 9 |
|