Spaces:
Running
on
Zero
Running
on
Zero
MohamedRashad
commited on
Commit
·
de6ad3b
1
Parent(s):
2943064
Add poppler-utils installation command
Browse files
app.py
CHANGED
@@ -4,6 +4,9 @@ import torch
|
|
4 |
from PIL import Image
|
5 |
from pathlib import Path
|
6 |
from pdf2image import convert_from_path
|
|
|
|
|
|
|
7 |
|
8 |
# Load the model and processor
|
9 |
processor = NougatProcessor.from_pretrained("MohamedRashad/arabic-small-nougat")
|
|
|
4 |
from PIL import Image
|
5 |
from pathlib import Path
|
6 |
from pdf2image import convert_from_path
|
7 |
+
import os
|
8 |
+
|
9 |
+
os.system("apt-get install poppler-utils")
|
10 |
|
11 |
# Load the model and processor
|
12 |
processor = NougatProcessor.from_pretrained("MohamedRashad/arabic-small-nougat")
|