chatthai
commited on
Commit
•
3ad54a9
1
Parent(s):
1bdf4e2
Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,14 @@ from keras import initializers, regularizers, constraints, activations
|
|
6 |
from keras.initializers import Constant
|
7 |
from keras import Model
|
8 |
import sys
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
|
11 |
class TimestepDropout(Dropout):
|
|
|
6 |
from keras.initializers import Constant
|
7 |
from keras import Model
|
8 |
import sys
|
9 |
+
import json
|
10 |
+
|
11 |
+
with open('CHAR_TYPES_MAP.json') as json_file:
|
12 |
+
CHAR_TYPES_MAP = json.load(json_file)
|
13 |
+
with open('CHARS_MAP.json') as json_file:
|
14 |
+
CHARS_MAP = json.load(json_file)
|
15 |
+
with open('CHAR_TYPE_FLATTEN.json') as json_file:
|
16 |
+
CHAR_TYPE_FLATTEN = json.load(json_file)
|
17 |
|
18 |
|
19 |
class TimestepDropout(Dropout):
|