Spaces:
Runtime error
Runtime error
danial0203
commited on
Commit
•
4897ea3
1
Parent(s):
184dfe7
Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def process_files_fixed(image_path, page_identifier, error_pages):
|
|
43 |
image = Image.open(image_path)
|
44 |
base64_image = encode_image_to_base64(image)
|
45 |
|
46 |
-
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. 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.
|
47 |
|
48 |
Return the response in the following JSoN response format:
|
49 |
```
|
|
|
43 |
image = Image.open(image_path)
|
44 |
base64_image = encode_image_to_base64(image)
|
45 |
|
46 |
+
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. 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. Verrify both for better ocr in integers.
|
47 |
|
48 |
Return the response in the following JSoN response format:
|
49 |
```
|