syedfaisalabrar commited on
Commit
14565fe
·
verified ·
1 Parent(s): 21b1d4e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -37,9 +37,9 @@ def vision_ai_api(image, label):
37
  return {
38
  "label": label,
39
  "extracted_data": {
40
- "name": "John Doe",
41
- "dob": "01-01-1990",
42
- "id_number": "1234567890"
43
  }
44
  }
45
 
@@ -93,7 +93,7 @@ def predict(image):
93
  iface = gr.Interface(
94
  fn=predict,
95
  inputs="image",
96
- outputs=["image", "text", "image", "text", "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
  )