Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,6 +26,9 @@ word_index = tokenizer.word_index
|
|
26 |
# Load trained model
|
27 |
model = load_model("conversation_model.h5")
|
28 |
|
|
|
|
|
|
|
29 |
# Function to generate response
|
30 |
def generate_response(input_text):
|
31 |
# Tokenize input text
|
|
|
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!!!
|
31 |
+
|
32 |
# Function to generate response
|
33 |
def generate_response(input_text):
|
34 |
# Tokenize input text
|