Spaces:
Sleeping
Sleeping
Commit
·
18a078c
1
Parent(s):
315eb56
Update app.py
Browse files
app.py
CHANGED
|
@@ -108,12 +108,11 @@ def sepia(input_img):
|
|
| 108 |
for class_name, prob in class_probabilities.items():
|
| 109 |
print(f"{class_name}: {prob:.4f}")
|
| 110 |
|
| 111 |
-
# 정확성이 가장 높은 물체 정보
|
| 112 |
max_prob_class = max(class_probabilities, key=class_probabilities.get)
|
| 113 |
max_prob_value = class_probabilities[max_prob_class]
|
|
|
|
| 114 |
|
| 115 |
-
# 출력 및 반환
|
| 116 |
-
print(f"Predicted class with highest probability: {max_prob_class}, Probability: {max_prob_value:.4f}")
|
| 117 |
return fig, f"Predicted class with highest probability: {max_prob_class}, Probability: {max_prob_value:.4f}"
|
| 118 |
|
| 119 |
|
|
|
|
| 108 |
for class_name, prob in class_probabilities.items():
|
| 109 |
print(f"{class_name}: {prob:.4f}")
|
| 110 |
|
| 111 |
+
# 정확성이 가장 높은 물체 정보 출력
|
| 112 |
max_prob_class = max(class_probabilities, key=class_probabilities.get)
|
| 113 |
max_prob_value = class_probabilities[max_prob_class]
|
| 114 |
+
print(f"\nPredicted class with highest probability: {max_prob_class}, Probability: {max_prob_value:.4f}")
|
| 115 |
|
|
|
|
|
|
|
| 116 |
return fig, f"Predicted class with highest probability: {max_prob_class}, Probability: {max_prob_value:.4f}"
|
| 117 |
|
| 118 |
|