root
commited on
Commit
·
ddb227a
1
Parent(s):
bf68423
fix chart rec
Browse files
app.py
CHANGED
|
@@ -101,7 +101,7 @@ def _call_api(api_url: str, file_path: str, use_layout_detection: bool,
|
|
| 101 |
raise ValueError("Please select a recognition type.")
|
| 102 |
payload["promptLabel"] = prompt_label.strip().lower()
|
| 103 |
if use_layout_detection and use_chart_recognition:
|
| 104 |
-
payload["
|
| 105 |
|
| 106 |
try:
|
| 107 |
# 关键改动:带上 headers
|
|
|
|
| 101 |
raise ValueError("Please select a recognition type.")
|
| 102 |
payload["promptLabel"] = prompt_label.strip().lower()
|
| 103 |
if use_layout_detection and use_chart_recognition:
|
| 104 |
+
payload["useChartRecognition"] = True
|
| 105 |
|
| 106 |
try:
|
| 107 |
# 关键改动:带上 headers
|