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