heerjtdev commited on
Commit
92d1c66
·
verified ·
1 Parent(s): 6bc4d1a

Update working_yolo_pipeline.py

Browse files
Files changed (1) hide show
  1. working_yolo_pipeline.py +2 -2
working_yolo_pipeline.py CHANGED
@@ -2079,8 +2079,8 @@ def run_document_pipeline(input_path: str, layoutlmv3_model_path: str):
2079
  # 1. INITIALIZE YOLO
2080
  yolo_model = YOLO(WEIGHTS_PATH)
2081
 
2082
- # 2. DETECT FILE TYPE
2083
- ext = os.path.splitext(input_path).lower()
2084
  is_image = ext in ['.jpg', '.jpeg', '.png', '.bmp', '.tiff', '.webp']
2085
 
2086
  all_pages_data = []
 
2079
  # 1. INITIALIZE YOLO
2080
  yolo_model = YOLO(WEIGHTS_PATH)
2081
 
2082
+ # 2. DETECT FILE TYPEext = os.path.splitext(input_path)[1].lower()
2083
+ ext = os.path.splitext(input_path)[1].lower()
2084
  is_image = ext in ['.jpg', '.jpeg', '.png', '.bmp', '.tiff', '.webp']
2085
 
2086
  all_pages_data = []