dschandra commited on
Commit
9bbbddf
·
verified ·
1 Parent(s): c586aa6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -69,12 +69,13 @@ def process_image(image_file):
69
  # ------------------------
70
  iface = gr.Interface(
71
  fn=process_image,
72
- inputs=gr.Image(type="file"),
73
  outputs=gr.JSON(),
74
  title="AI KYC OCR & Salesforce Integration",
75
  description="Upload PAN or Aadhaar card images to extract text and verify Salesforce connection."
76
  )
77
 
 
78
  if __name__ == "__main__":
79
  # Launch server to keep container alive
80
  iface.launch(server_name="0.0.0.0", server_port=7860)
 
69
  # ------------------------
70
  iface = gr.Interface(
71
  fn=process_image,
72
+ inputs=gr.Image(type="filepath"), # ✅ fixed
73
  outputs=gr.JSON(),
74
  title="AI KYC OCR & Salesforce Integration",
75
  description="Upload PAN or Aadhaar card images to extract text and verify Salesforce connection."
76
  )
77
 
78
+
79
  if __name__ == "__main__":
80
  # Launch server to keep container alive
81
  iface.launch(server_name="0.0.0.0", server_port=7860)