Simba commited on
Commit
b44e46f
1 Parent(s): 568445c
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -65,12 +65,12 @@ def respond(image: np.ndarray, prompt: str, chat_history=None):
65
  # Use the image details to generate a challenge
66
  # This is where you'd use the AI's analysis of the image to tailor the challenge
67
  # For simplicity, the details are hard-coded here
68
- image_details = "A Person Wearing glasses" # Placeholder for actual analysis
69
 
70
  # Get the image details from the AI model
71
- ai_response = connector.simple_prompt(image=image, prompt="What details can you describe from this image?")
72
 
73
- print(ai_response)
74
 
75
  challenge = generate_liveness_challenge(image_details)
76
  response = f"For liveness verification, {challenge}"
 
65
  # Use the image details to generate a challenge
66
  # This is where you'd use the AI's analysis of the image to tailor the challenge
67
  # For simplicity, the details are hard-coded here
68
+ # image_details = "A Person Wearing glasses" # Placeholder for actual analysis
69
 
70
  # Get the image details from the AI model
71
+ image_details = connector.simple_prompt(image=image, prompt="What details can you describe from this image?")
72
 
73
+ # print(ai_response)
74
 
75
  challenge = generate_liveness_challenge(image_details)
76
  response = f"For liveness verification, {challenge}"