AmelC commited on
Commit
4775cdd
·
verified ·
1 Parent(s): e068114

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -193,7 +193,7 @@ class AdvancedPDFAnalyzer:
193
  add_special_tokens=True,
194
  return_tensors="pt",
195
  max_length=512,
196
- truncation="only_second"
197
  )
198
  inputs = {k: v.to(self.device) for k, v in inputs.items()}
199
  with torch.no_grad():
 
193
  add_special_tokens=True,
194
  return_tensors="pt",
195
  max_length=512,
196
+ truncation=True #iniatially only_second
197
  )
198
  inputs = {k: v.to(self.device) for k, v in inputs.items()}
199
  with torch.no_grad():