Spaces:
Runtime error
Runtime error
Commit ·
eb09244
1
Parent(s): 3ff6f0b
Update support.py
Browse files- support.py +1 -1
support.py
CHANGED
|
@@ -6,7 +6,7 @@ from PIL import Image, ImageDraw, ImageFont
|
|
| 6 |
import torch
|
| 7 |
|
| 8 |
tokenizer = LayoutLMv3Processor.from_pretrained("microsoft/layoutlmv3-base")
|
| 9 |
-
model = LayoutLMv3ForTokenClassification.from_pretrained(r"G:/Form understanding in Noisy scanned documents/
|
| 10 |
device = torch.device("cuda")
|
| 11 |
model.cuda()
|
| 12 |
|
|
|
|
| 6 |
import torch
|
| 7 |
|
| 8 |
tokenizer = LayoutLMv3Processor.from_pretrained("microsoft/layoutlmv3-base")
|
| 9 |
+
model = LayoutLMv3ForTokenClassification.from_pretrained(r"G:/Form understanding in Noisy scanned documents/models")
|
| 10 |
device = torch.device("cuda")
|
| 11 |
model.cuda()
|
| 12 |
|