Spaces:
Sleeping
Sleeping
Commit
·
0118b47
1
Parent(s):
2af7de6
Update app.py
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ def show_incorrect(num_examples=10, show_cam=True, target_layer=-1, transparency
|
|
75 |
image = np.asarray(Image.open(f'missed_examples/{index}.jpg'))
|
76 |
output_image, confidence = image_classifier(image, show_cam=show_cam, target_layer=target_layer, transparency=transparency)
|
77 |
predicted = list(confidence)[0]
|
78 |
-
result.append((output_image, f"{row['ground_truths']} / {
|
79 |
return result
|
80 |
|
81 |
|
|
|
75 |
image = np.asarray(Image.open(f'missed_examples/{index}.jpg'))
|
76 |
output_image, confidence = image_classifier(image, show_cam=show_cam, target_layer=target_layer, transparency=transparency)
|
77 |
predicted = list(confidence)[0]
|
78 |
+
result.append((output_image, f"{row['ground_truths']} / {row['predicted_vals']}"))
|
79 |
return result
|
80 |
|
81 |
|