wop commited on
Commit
510623a
1 Parent(s): 7357b85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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