Bobholamovic
commited on
Commit
·
ea978b8
1
Parent(s):
13ea0c7
Disable doc preprocessor
Browse files
app.py
CHANGED
|
@@ -22,7 +22,12 @@ def inference(img):
|
|
| 22 |
|
| 23 |
response = requests.post(
|
| 24 |
API_URL,
|
| 25 |
-
json={
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
headers=headers,
|
| 27 |
timeout=1000,
|
| 28 |
)
|
|
@@ -51,7 +56,7 @@ examples = [
|
|
| 51 |
["examples/magazine.png"],
|
| 52 |
["examples/pinyin_demo.png"],
|
| 53 |
["examples/research.png"],
|
| 54 |
-
["examples/tech.png"]
|
| 55 |
]
|
| 56 |
|
| 57 |
css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
|
|
|
|
| 22 |
|
| 23 |
response = requests.post(
|
| 24 |
API_URL,
|
| 25 |
+
json={
|
| 26 |
+
"file": img_base64,
|
| 27 |
+
"fileType": 1,
|
| 28 |
+
"useDocOrientationClassify": False,
|
| 29 |
+
"useDocUnwarping": False,
|
| 30 |
+
},
|
| 31 |
headers=headers,
|
| 32 |
timeout=1000,
|
| 33 |
)
|
|
|
|
| 56 |
["examples/magazine.png"],
|
| 57 |
["examples/pinyin_demo.png"],
|
| 58 |
["examples/research.png"],
|
| 59 |
+
["examples/tech.png"],
|
| 60 |
]
|
| 61 |
|
| 62 |
css = ".output_image, .input_image {height: 40rem !important; width: 100% !important;}"
|