sheikh987 commited on
Commit
3c45751
·
verified ·
1 Parent(s): c8ba32e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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 < 50.0:
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