Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,9 +25,6 @@ word_index = tokenizer.word_index
|
|
25 |
|
26 |
# Load trained model
|
27 |
model = load_model("conversation_model.h5")
|
28 |
-
for layer in model.layers:
|
29 |
-
if isinstance(layer, Embedding):
|
30 |
-
layer.input_length = None
|
31 |
|
32 |
# Define max_sequence_length
|
33 |
max_sequence_length = 31 # do not change!!!
|
|
|
25 |
|
26 |
# Load trained model
|
27 |
model = load_model("conversation_model.h5")
|
|
|
|
|
|
|
28 |
|
29 |
# Define max_sequence_length
|
30 |
max_sequence_length = 31 # do not change!!!
|