omarelsayeed
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ from transformers import AutoProcessor
|
|
12 |
from transformers import AutoModelForTokenClassification
|
13 |
quant=True
|
14 |
if quant:
|
15 |
-
finetuned_fully = LayoutLMv3ForTokenClassification.from_pretrained("omarelsayeed/ArabicLayoutReader_4bit")
|
16 |
else:
|
17 |
finetuned_fully = LayoutLMv3ForTokenClassification.from_pretrained("omarelsayeed/YARAB_FOK_ELDE2A")
|
18 |
|
|
|
12 |
from transformers import AutoModelForTokenClassification
|
13 |
quant=True
|
14 |
if quant:
|
15 |
+
finetuned_fully = LayoutLMv3ForTokenClassification.from_pretrained("omarelsayeed/ArabicLayoutReader_4bit" , load_in_4bit=True)
|
16 |
else:
|
17 |
finetuned_fully = LayoutLMv3ForTokenClassification.from_pretrained("omarelsayeed/YARAB_FOK_ELDE2A")
|
18 |
|