Spaces:
Runtime error
Runtime error
updated roboflow model to improve accuracy
Browse files
app.py
CHANGED
@@ -263,8 +263,8 @@ def fetchImage():
|
|
263 |
)
|
264 |
print(file_name)
|
265 |
|
266 |
-
|
267 |
-
|
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]
|