Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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()
|
|