wop commited on
Commit
a64e097
1 Parent(s): 5f05d95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -45,7 +45,7 @@ for i, sequence in enumerate(answer_sequences):
45
 
46
  # Define model
47
  model = Sequential([
48
- Embedding(len(word_index) + 1, 64, input_length=max_sequence_length),
49
  LSTM(64, return_sequences=True),
50
  Dense(len(word_index) + 1, activation='softmax')
51
  ])
@@ -84,4 +84,3 @@ input_text = gr.inputs.Textbox(label="Input Text")
84
  output_text = gr.outputs.Textbox(label="Output Text")
85
 
86
  gr.Interface(fn=generate_response, inputs=input_text, outputs=output_text, title="Conversation Model", description="Enter your question and get a response.").launch()
87
-
 
45
 
46
  # Define model
47
  model = Sequential([
48
+ Embedding(len(word_index) + 1, 64), # Removed input_length parameter
49
  LSTM(64, return_sequences=True),
50
  Dense(len(word_index) + 1, activation='softmax')
51
  ])
 
84
  output_text = gr.outputs.Textbox(label="Output Text")
85
 
86
  gr.Interface(fn=generate_response, inputs=input_text, outputs=output_text, title="Conversation Model", description="Enter your question and get a response.").launch()