Update app.py
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ def grade_pdf(input_pdf, pdffigures2_jar):
|
|
| 59 |
region["captionLocation"]="Above"
|
| 60 |
|
| 61 |
if(region["captionLocation"]=="Below" and region["figType"] == "Table"):
|
| 62 |
-
issues["page_number"]=region["page"]
|
| 63 |
issues["caption_coordinate"]=region["captionBoundary"]
|
| 64 |
issues["fig_type"] = region["figType"]
|
| 65 |
issues["caption_location"] = region["captionLocation"]
|
|
@@ -67,7 +67,7 @@ def grade_pdf(input_pdf, pdffigures2_jar):
|
|
| 67 |
issueList.append(issues)
|
| 68 |
|
| 69 |
if(region["captionLocation"]=="Above" and region["figType"] == "Figure"):
|
| 70 |
-
issues["page_number"]=region["page"]
|
| 71 |
issues["caption_coordinate"]=region["captionBoundary"]
|
| 72 |
issues["fig_type"] = region["figType"]
|
| 73 |
issues["description"]="Location of the caption for figures must be below the table."
|
|
|
|
| 59 |
region["captionLocation"]="Above"
|
| 60 |
|
| 61 |
if(region["captionLocation"]=="Below" and region["figType"] == "Table"):
|
| 62 |
+
issues["page_number"]=region["page"]+1
|
| 63 |
issues["caption_coordinate"]=region["captionBoundary"]
|
| 64 |
issues["fig_type"] = region["figType"]
|
| 65 |
issues["caption_location"] = region["captionLocation"]
|
|
|
|
| 67 |
issueList.append(issues)
|
| 68 |
|
| 69 |
if(region["captionLocation"]=="Above" and region["figType"] == "Figure"):
|
| 70 |
+
issues["page_number"]=region["page"]+1
|
| 71 |
issues["caption_coordinate"]=region["captionBoundary"]
|
| 72 |
issues["fig_type"] = region["figType"]
|
| 73 |
issues["description"]="Location of the caption for figures must be below the table."
|