Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -569,7 +569,7 @@ def summarize_text(
|
|
569 |
num_beams=4,
|
570 |
early_stopping=True
|
571 |
)
|
572 |
-
inputs
|
573 |
i = i + 1
|
574 |
summary = tokenizer.decode(inputs[0])
|
575 |
log(f'RET summarize_text with summary as {summary}')
|
|
|
569 |
num_beams=4,
|
570 |
early_stopping=True
|
571 |
)
|
572 |
+
inputs = torch.tensor([[*list(outputs[0]), *list(inputs[0][512:])]])
|
573 |
i = i + 1
|
574 |
summary = tokenizer.decode(inputs[0])
|
575 |
log(f'RET summarize_text with summary as {summary}')
|