DSatishchandra commited on
Commit
2f471d8
·
verified ·
1 Parent(s): afc860e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -5,8 +5,20 @@ from modules.onboarding_trainer import generate_quiz
5
  from modules.performance_tracker import analyze_performance
6
  from modules.agent_motivation import personalized_nudge
7
 
 
 
 
 
 
 
8
  def main():
9
- print("\n--- Agent Recruitment & Management AI App ---")
 
 
 
 
 
 
10
 
11
  # 1. Profile Matching
12
  print("\n[1] Profile Matching:")
 
5
  from modules.performance_tracker import analyze_performance
6
  from modules.agent_motivation import personalized_nudge
7
 
8
+ def kyc_interface(uploaded_image):
9
+ try:
10
+ return extract_text_from_id(uploaded_image)
11
+ except Exception as e:
12
+ return f"Error: {str(e)}"
13
+
14
  def main():
15
+ gr.Interface(
16
+ fn=kyc_interface,
17
+ inputs=gr.Image(type="filepath", label="Upload ID Document"),
18
+ outputs="text",
19
+ title="KYC Document OCR",
20
+ description="Upload an image of an ID card for OCR-based text extraction."
21
+ ).launch()
22
 
23
  # 1. Profile Matching
24
  print("\n[1] Profile Matching:")