Sai16216 commited on
Commit
81f2565
·
verified ·
1 Parent(s): c5b1b11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -193,7 +193,7 @@ def bart_summarize(text):
193
  truncation=True,
194
  max_length=4096,
195
  ).to(device)
196
- model.config.max_length = 4096
197
  with torch.no_grad():
198
  summary_ids = bart_model.generate(
199
  inputs["input_ids"],
 
193
  truncation=True,
194
  max_length=4096,
195
  ).to(device)
196
+ bart_model.config.max_length = 4096
197
  with torch.no_grad():
198
  summary_ids = bart_model.generate(
199
  inputs["input_ids"],