Commit
·
217b0e2
1
Parent(s):
ef18222
model named sentimentality not sentimental
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ with open('tokenizer.json', 'r', encoding='utf-8') as f:
|
|
39 |
|
40 |
tokenizer = tokenizer_from_json(tokenizer_config)
|
41 |
|
42 |
-
model = tf.keras.models.load_model("
|
43 |
|
44 |
def get_sentiment(text):
|
45 |
global model
|
|
|
39 |
|
40 |
tokenizer = tokenizer_from_json(tokenizer_config)
|
41 |
|
42 |
+
model = tf.keras.models.load_model("sentimentality.h5", custom_objects={'f1':f1, 'recall': recall, 'precision': precision, 'accuracy':accuracy})
|
43 |
|
44 |
def get_sentiment(text):
|
45 |
global model
|