Update app.py
Browse files
app.py
CHANGED
@@ -193,7 +193,7 @@ class AdvancedPDFAnalyzer:
|
|
193 |
add_special_tokens=True,
|
194 |
return_tensors="pt",
|
195 |
max_length=512,
|
196 |
-
truncation=
|
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():
|