Commit
·
ef18222
1
Parent(s):
a3d47cc
changed model to 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("sentimental.h5", custom_objects={'f1':f1, 'recall': recall, 'precision': precision, 'accuracy':accuracy})
|
43 |
|
44 |
def get_sentiment(text):
|
45 |
global model
|