Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import numpy as np
|
|
7 |
model_name = 'cardiffnlp/twitter-roberta-base-sentiment-latest'
|
8 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
9 |
model = tf.keras.models.load_model(
|
10 |
-
"
|
11 |
custom_objects={
|
12 |
'TFRobertaModel': TFAutoModel.from_pretrained(model_name)
|
13 |
}
|
|
|
7 |
model_name = 'cardiffnlp/twitter-roberta-base-sentiment-latest'
|
8 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
9 |
model = tf.keras.models.load_model(
|
10 |
+
"model.h5",
|
11 |
custom_objects={
|
12 |
'TFRobertaModel': TFAutoModel.from_pretrained(model_name)
|
13 |
}
|