Arafath10 commited on
Commit
5354b70
·
verified ·
1 Parent(s): 07846cc

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -92,7 +92,7 @@ async def get_data(input_file: UploadFile = File(...)):
92
  for page in pdf_reader.pages:
93
  text += page.extract_text()
94
 
95
- if text=="":
96
  print("vision called")
97
  text = vision(file_content)
98
  else:
 
92
  for page in pdf_reader.pages:
93
  text += page.extract_text()
94
 
95
+ if len(text)<10:
96
  print("vision called")
97
  text = vision(file_content)
98
  else: