Commit
•
4d3b643
1
Parent(s):
d8eb525
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,6 @@ import tensorflow as tf # Apply softmax using tf.nn.softmax
|
|
19 |
# Load model directly
|
20 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
21 |
|
22 |
-
tokenizer = AutoTokenizer.from_pretrained("dhruvsaxena11/emoton_model_dhruv")
|
23 |
loaded_model = AutoModelForSequenceClassification.from_pretrained("dhruvsaxena11/emoton_model_dhruv")
|
24 |
# loaded_model = TFBertForSequenceClassification.from_pretrained("https://huggingface.co/spaces/dhruvsaxena11/Emotion_Recognition_in_Text/blob/main/tf_model.h5")
|
25 |
loaded_tokenizer=AutoTokenizer.from_pretrained("google-bert/bert-base-uncased")
|
|
|
19 |
# Load model directly
|
20 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
21 |
|
|
|
22 |
loaded_model = AutoModelForSequenceClassification.from_pretrained("dhruvsaxena11/emoton_model_dhruv")
|
23 |
# loaded_model = TFBertForSequenceClassification.from_pretrained("https://huggingface.co/spaces/dhruvsaxena11/Emotion_Recognition_in_Text/blob/main/tf_model.h5")
|
24 |
loaded_tokenizer=AutoTokenizer.from_pretrained("google-bert/bert-base-uncased")
|