Spaces:
Runtime error
Runtime error
srijan2024
commited on
Commit
•
94c9be2
1
Parent(s):
05a6ec4
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import json
|
|
10 |
from tensorflow.keras.models import load_model
|
11 |
import tensorflow as tf
|
12 |
|
13 |
-
model = load_model("
|
14 |
|
15 |
app = Flask(__name__)
|
16 |
|
@@ -19,7 +19,7 @@ from tensorflow.keras.preprocessing.text import tokenizer_from_json
|
|
19 |
|
20 |
import json
|
21 |
|
22 |
-
with open("
|
23 |
tokenizer_data = f.read()
|
24 |
|
25 |
|
|
|
10 |
from tensorflow.keras.models import load_model
|
11 |
import tensorflow as tf
|
12 |
|
13 |
+
model = load_model("_best_model_LSTM.hdf5")
|
14 |
|
15 |
app = Flask(__name__)
|
16 |
|
|
|
19 |
|
20 |
import json
|
21 |
|
22 |
+
with open("tokenizer.json", 'r') as f:
|
23 |
tokenizer_data = f.read()
|
24 |
|
25 |
|