Spaces:
Paused
Paused
Update inference.py
Browse files- inference.py +5 -5
inference.py
CHANGED
|
@@ -3,13 +3,13 @@ from model_loader import model, processor, device
|
|
| 3 |
from processor_utils import load_input
|
| 4 |
from prompt import get_prompt
|
| 5 |
import json
|
| 6 |
-
def process_document(
|
| 7 |
-
images = load_input(file_path)
|
| 8 |
-
image = images[0]
|
| 9 |
print("Checking input type and no of pages in pdf")
|
| 10 |
print(type(image))
|
| 11 |
-
print(type(images))
|
| 12 |
-
print(len(images))
|
| 13 |
|
| 14 |
|
| 15 |
|
|
|
|
| 3 |
from processor_utils import load_input
|
| 4 |
from prompt import get_prompt
|
| 5 |
import json
|
| 6 |
+
def process_document(image):
|
| 7 |
+
# images = load_input(file_path)
|
| 8 |
+
# image = images[0]
|
| 9 |
print("Checking input type and no of pages in pdf")
|
| 10 |
print(type(image))
|
| 11 |
+
# print(type(images))
|
| 12 |
+
# print(len(images))
|
| 13 |
|
| 14 |
|
| 15 |
|