Update main.py
Browse files
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:
|