Update app.py
Browse files
app.py
CHANGED
|
@@ -71,28 +71,28 @@ def normalize_bbox(box, width, height, padding=0.005):
|
|
| 71 |
return [min_x * width, min_y * height, max_x * width, max_y * height]
|
| 72 |
|
| 73 |
|
| 74 |
-
|
| 75 |
-
#
|
| 76 |
-
#
|
| 77 |
-
#
|
| 78 |
-
#
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
#
|
| 88 |
-
#
|
| 89 |
-
#
|
| 90 |
-
#
|
| 91 |
-
#
|
| 92 |
-
#
|
| 93 |
-
#
|
| 94 |
-
#
|
| 95 |
-
|
| 96 |
|
| 97 |
question_files = {
|
| 98 |
"What are net sales for 2020?": "statement.pdf",
|
|
|
|
| 71 |
return [min_x * width, min_y * height, max_x * width, max_y * height]
|
| 72 |
|
| 73 |
|
| 74 |
+
examples = [
|
| 75 |
+
# [
|
| 76 |
+
# "invoice.png",
|
| 77 |
+
# "What is the invoice number?",
|
| 78 |
+
# ],
|
| 79 |
+
[
|
| 80 |
+
"contract.jpeg",
|
| 81 |
+
"What is the purchase amount?",
|
| 82 |
+
],
|
| 83 |
+
[
|
| 84 |
+
"statement.png",
|
| 85 |
+
"What are net sales for 2020?",
|
| 86 |
+
],
|
| 87 |
+
# [
|
| 88 |
+
# "docquery.png",
|
| 89 |
+
# "How many likes does the space have?",
|
| 90 |
+
# ],
|
| 91 |
+
# [
|
| 92 |
+
# "hacker_news.png",
|
| 93 |
+
# "What is the title of post number 5?",
|
| 94 |
+
# ],
|
| 95 |
+
]
|
| 96 |
|
| 97 |
question_files = {
|
| 98 |
"What are net sales for 2020?": "statement.pdf",
|