Spaces:
Sleeping
Sleeping
Update api.py
Browse files
api.py
CHANGED
|
@@ -7,10 +7,10 @@ import tensorflow as tf
|
|
| 7 |
|
| 8 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 9 |
|
| 10 |
-
|
| 11 |
-
from transformers import DistilBertTokenizer
|
| 12 |
|
| 13 |
-
tokenizer = DistilBertTokenizer.from_pretrained("distilbert-base-uncased")
|
| 14 |
|
| 15 |
|
| 16 |
model = AutoModelForSequenceClassification.from_pretrained("chillies/distilbert-course-review-classification")
|
|
|
|
| 7 |
|
| 8 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 9 |
|
| 10 |
+
tokenizer = AutoTokenizer.from_pretrained("chillies/distilbert-course-review-classification")
|
| 11 |
+
# from transformers import DistilBertTokenizer
|
| 12 |
|
| 13 |
+
# tokenizer = DistilBertTokenizer.from_pretrained("distilbert-base-uncased")
|
| 14 |
|
| 15 |
|
| 16 |
model = AutoModelForSequenceClassification.from_pretrained("chillies/distilbert-course-review-classification")
|