Yaron Koresh commited on
Commit
966bdcc
·
verified ·
1 Parent(s): 723fc44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -569,7 +569,7 @@ def summarize_text(
569
  num_beams=4,
570
  early_stopping=True
571
  )
572
- inputs[0] = [*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}')
 
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}')