Update main.py
Browse files
main.py
CHANGED
@@ -95,7 +95,7 @@ async def analyze_image(request: ImageRequest):
|
|
95 |
predicted_abbr = idx_to_class_abbr[idx.item()]
|
96 |
info = knowledge_base.get(predicted_abbr, {})
|
97 |
|
98 |
-
if conf_percent <
|
99 |
return {"status":"Inconclusive",
|
100 |
"message":f"Confidence ({conf_percent:.2f}%) below threshold."}
|
101 |
|
|
|
95 |
predicted_abbr = idx_to_class_abbr[idx.item()]
|
96 |
info = knowledge_base.get(predicted_abbr, {})
|
97 |
|
98 |
+
if conf_percent < 15.0:
|
99 |
return {"status":"Inconclusive",
|
100 |
"message":f"Confidence ({conf_percent:.2f}%) below threshold."}
|
101 |
|