Spaces:
Running
Running
fix
Browse files
app.py
CHANGED
|
@@ -178,7 +178,7 @@ def verify(v: Verify):
|
|
| 178 |
if result.get("verified", False):
|
| 179 |
true_count += 1
|
| 180 |
log_info_event("verify_match_count", gallery_image=image, true_count=true_count)
|
| 181 |
-
if true_count >=
|
| 182 |
log_info_event("verify_response", verified=True, matched_image=image, true_count=true_count)
|
| 183 |
return JSONResponse(content={"verified": True, "image": image})
|
| 184 |
except Exception as e2:
|
|
|
|
| 178 |
if result.get("verified", False):
|
| 179 |
true_count += 1
|
| 180 |
log_info_event("verify_match_count", gallery_image=image, true_count=true_count)
|
| 181 |
+
if true_count >= 1:
|
| 182 |
log_info_event("verify_response", verified=True, matched_image=image, true_count=true_count)
|
| 183 |
return JSONResponse(content={"verified": True, "image": image})
|
| 184 |
except Exception as e2:
|