reidddd commited on
Commit
c479e13
·
1 Parent(s): 1a0c2a2

updated roboflow model to improve accuracy

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -263,8 +263,8 @@ def fetchImage():
263
  )
264
  print(file_name)
265
 
266
- result = CLIENT.infer(file_name, model_id="car-damage-detection-krsix/1",
267
- confidence=0.3) # Set confidence threshold to 50%
268
  threshold = 0.3 # Adjust this as needed
269
  filtered_labels = [item["class"]
270
  for item in result["predictions"] if item["confidence"] >= threshold]
 
263
  )
264
  print(file_name)
265
 
266
+ # Set confidence threshold to 50%
267
+ result = CLIENT.infer(file_name, model_id="car-damage-detection-krsix/1")
268
  threshold = 0.3 # Adjust this as needed
269
  filtered_labels = [item["class"]
270
  for item in result["predictions"] if item["confidence"] >= threshold]