Spaces:
Sleeping
Sleeping
Update web_app.py
Browse files- web_app.py +2 -2
web_app.py
CHANGED
|
@@ -107,7 +107,7 @@ def predict_image(name, model, img, conf_threshold, iou_threshold):
|
|
| 107 |
file_name.append(file_label)
|
| 108 |
|
| 109 |
### ============================
|
| 110 |
-
|
| 111 |
kde = KernelDensity(metric='euclidean', kernel='gaussian', algorithm='ball_tree')
|
| 112 |
|
| 113 |
# Finding Optimal Bandwidth
|
|
@@ -162,7 +162,7 @@ def predict_image(name, model, img, conf_threshold, iou_threshold):
|
|
| 162 |
total_layer_cno.append(single_layer_cno)
|
| 163 |
total_layer_density.append(single_layer_density)
|
| 164 |
|
| 165 |
-
|
| 166 |
# Plot CNO Distribution
|
| 167 |
plt.contourf(x, y, z, levels=levels, cmap=plt.cm.bone)
|
| 168 |
plt.axis('off')
|
|
|
|
| 107 |
file_name.append(file_label)
|
| 108 |
|
| 109 |
### ============================
|
| 110 |
+
"""
|
| 111 |
kde = KernelDensity(metric='euclidean', kernel='gaussian', algorithm='ball_tree')
|
| 112 |
|
| 113 |
# Finding Optimal Bandwidth
|
|
|
|
| 162 |
total_layer_cno.append(single_layer_cno)
|
| 163 |
total_layer_density.append(single_layer_density)
|
| 164 |
|
| 165 |
+
|
| 166 |
# Plot CNO Distribution
|
| 167 |
plt.contourf(x, y, z, levels=levels, cmap=plt.cm.bone)
|
| 168 |
plt.axis('off')
|