Skip to content

Commit ebd4f3a

Browse files
image added
1 parent d95a8e6 commit ebd4f3a

File tree

132 files changed

+8300
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+8300
-5
lines changed

Backend/NotesToText.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def NotesToText_handler():
3434

3535
# Convert the PDF to images and save them in the output folder
3636
image_paths, noImg = pdf_to_images(pdf_path, output_folder)
37+
print(noImg)
3738
os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = 'Files/client_file_vision.json'
3839
client = vision.ImageAnnotatorClient()
3940

@@ -57,11 +58,11 @@ def NotesToText_handler():
5758
file.write(image_contents)
5859
print(f"module-{i+1} completed")
5960

60-
if response.error.message:
61-
raise Exception(
62-
'{}\nFor more info on error messages, check: '
63-
'https://cloud.google.com/apis/design/errors'.format(
64-
response.error.message))
61+
if response.error.message:
62+
raise Exception(
63+
'{}\nFor more info on error messages, check: '
64+
'https://cloud.google.com/apis/design/errors'.format(
65+
response.error.message))
6566

6667

6768

0 commit comments

Comments
 (0)