Update app.py
Browse files
app.py
CHANGED
@@ -37,9 +37,9 @@ def vision_ai_api(image, label):
|
|
37 |
return {
|
38 |
"label": label,
|
39 |
"extracted_data": {
|
40 |
-
"name": "
|
41 |
-
"dob": "
|
42 |
-
"id_number": "
|
43 |
}
|
44 |
}
|
45 |
|
@@ -93,7 +93,7 @@ def predict(image):
|
|
93 |
iface = gr.Interface(
|
94 |
fn=predict,
|
95 |
inputs="image",
|
96 |
-
outputs=["image", "text"
|
97 |
title="License Field Detection (Front & Back Card)",
|
98 |
description="Detect front & back of a license card, crop the images, and call Vision AI API separately for each."
|
99 |
)
|
|
|
37 |
return {
|
38 |
"label": label,
|
39 |
"extracted_data": {
|
40 |
+
"name": "-------",
|
41 |
+
"dob": "-------",
|
42 |
+
"id_number": "-------"
|
43 |
}
|
44 |
}
|
45 |
|
|
|
93 |
iface = gr.Interface(
|
94 |
fn=predict,
|
95 |
inputs="image",
|
96 |
+
outputs=["image", "text"],
|
97 |
title="License Field Detection (Front & Back Card)",
|
98 |
description="Detect front & back of a license card, crop the images, and call Vision AI API separately for each."
|
99 |
)
|