Spaces:
Runtime error
Runtime error
Add check for '' instead.
Browse files
app.py
CHANGED
@@ -88,7 +88,7 @@ def generate_for_prompt(input_text, state, ret_scale_factor, num_words, temperat
|
|
88 |
model_inputs = chat_history
|
89 |
model_inputs.append(input_prompt)
|
90 |
# Remove empty text.
|
91 |
-
model_inputs = [s for s in model_inputs if
|
92 |
|
93 |
top_p = 1.0
|
94 |
if temperature != 0.0:
|
|
|
88 |
model_inputs = chat_history
|
89 |
model_inputs.append(input_prompt)
|
90 |
# Remove empty text.
|
91 |
+
model_inputs = [s for s in model_inputs if s != '']
|
92 |
|
93 |
top_p = 1.0
|
94 |
if temperature != 0.0:
|