Spaces:
Runtime error
Runtime error
Commit
•
9070911
1
Parent(s):
7e236aa
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"
|
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"models")
|
10 |
device = torch.device("cuda")
|
11 |
model.cuda()
|
12 |
|