Update app.py
Browse files
app.py
CHANGED
@@ -221,7 +221,7 @@ def summarize(
|
|
221 |
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
|
222 |
]
|
223 |
|
224 |
-
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True
|
225 |
|
226 |
try:
|
227 |
data = ast.literal_eval(response[0])
|
|
|
221 |
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
|
222 |
]
|
223 |
|
224 |
+
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)
|
225 |
|
226 |
try:
|
227 |
data = ast.literal_eval(response[0])
|