Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -41,7 +41,7 @@ if uploaded_file:
|
|
41 |
|
42 |
# Display details of detected boxes
|
43 |
st.write("Detection Results:")
|
44 |
-
|
45 |
class_index = int(box.cls) # Get the class index
|
46 |
if class_index == 1: # RBC
|
47 |
cell_counts["RBC"] += 1
|
|
|
41 |
|
42 |
# Display details of detected boxes
|
43 |
st.write("Detection Results:")
|
44 |
+
for box in results[0].boxes:
|
45 |
class_index = int(box.cls) # Get the class index
|
46 |
if class_index == 1: # RBC
|
47 |
cell_counts["RBC"] += 1
|