Spaces:
Running
Running
Michele Stingo commited on
Update modules/utilities/utils.py
Browse files
modules/utilities/utils.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
import json
|
| 2 |
-
|
| 3 |
-
from keras.preprocessing.text import
|
|
|
|
| 4 |
|
| 5 |
def allowed_model(filename):
|
| 6 |
return '.' in filename and \
|
|
|
|
| 1 |
import json
|
| 2 |
+
import tf.keras
|
| 3 |
+
from tensorflow.keras.preprocessing.text import Tokenizer
|
| 4 |
+
from tensorflow.keras.preprocessing.text import tokenizer_from_json
|
| 5 |
|
| 6 |
def allowed_model(filename):
|
| 7 |
return '.' in filename and \
|