danial0203 commited on
Commit
71f331d
·
verified ·
1 Parent(s): f10fb8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -53,7 +53,7 @@ def process_files_fixed(image_path, page_identifier, error_pages):
53
  error_pages.append(page_identifier)
54
  return []
55
 
56
- prompt = """Perform OCR on this image. Analyze the table in the provided image, focusing on the first five columns labeled S.No, Reg #, Roll No. and Marks. Get the marks from the 6th column and write them in fifth column in integers, make sure to check them as well for correct integer number, I don't want any mistakes in the obtained marks. In case the table headers are not visible or not present, assume the mentioned order for the columns. Extract and list the data only from these columns, omitting any additional columns that may be present. But DO NOT skip any row from the table, extract all the rows present in the table. The obtained marks are written in both integral and written format as well. Verify both for better ocr in integers.
57
 
58
  Return the response in the following JSON response format:
59
  {
 
53
  error_pages.append(page_identifier)
54
  return []
55
 
56
+ prompt = """Perform OCR on this image. Analyze the table in the provided image, focusing on the first seven columns labeled S.No, Admission No.,Date of Admission,Name of Student,Father's Name,Date of Birth and Telephone No. . Get the Telephone No. from the last column ignore office and residence column under it and write themI don't want any mistakes in the obtained data. In case the table headers are not visible or not present, assume the mentioned order for the columns. Extract and list the data only from these columns, omitting any additional columns that may be present. But DO NOT skip any row from the table, extract all the rows present in the table. Verify both for better ocr in integers.
57
 
58
  Return the response in the following JSON response format:
59
  {