Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,8 @@
|
|
1 |
# Load model directly
|
2 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
3 |
|
4 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
5 |
-
model = AutoModelForSequenceClassification.from_pretrained("
|
6 |
-
|
7 |
# Use a pipeline as a high-level helper
|
8 |
from transformers import pipeline
|
9 |
|
|
|
1 |
# Load model directly
|
2 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
3 |
|
4 |
+
tokenizer = AutoTokenizer.from_pretrained("OatNapat/finetuned_yelp")
|
5 |
+
model = AutoModelForSequenceClassification.from_pretrained("OatNapat/finetuned_yelp")
|
|
|
6 |
# Use a pipeline as a high-level helper
|
7 |
from transformers import pipeline
|
8 |
|