omarelsayeed
commited on
Commit
•
308a301
1
Parent(s):
3a61263
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import torch
|
|
10 |
from transformers import LayoutLMv3ForTokenClassification
|
11 |
from transformers import AutoProcessor
|
12 |
from transformers import AutoModelForTokenClassification
|
13 |
-
quant=
|
14 |
if quant:
|
15 |
finetuned_fully = LayoutLMv3ForTokenClassification.from_pretrained("omarelsayeed/ArabicLayoutReader_4bit" , load_in_4bit=True)
|
16 |
else:
|
|
|
10 |
from transformers import LayoutLMv3ForTokenClassification
|
11 |
from transformers import AutoProcessor
|
12 |
from transformers import AutoModelForTokenClassification
|
13 |
+
quant=False
|
14 |
if quant:
|
15 |
finetuned_fully = LayoutLMv3ForTokenClassification.from_pretrained("omarelsayeed/ArabicLayoutReader_4bit" , load_in_4bit=True)
|
16 |
else:
|