credent007 commited on
Commit
72b5e27
·
verified ·
1 Parent(s): 8b2159b

Update inference.py

Browse files
Files changed (1) hide show
  1. 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(file_path):
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