minor bug fix
Browse files
app.py
CHANGED
@@ -117,7 +117,7 @@ def predict_and_analyze(model_name, num_channels, dim, image):
|
|
117 |
if output[0] < output[1]:
|
118 |
output = 'Planet predicted with %.3f percent confidence' % (100*output[1])
|
119 |
else:
|
120 |
-
output = 'No planet predicted with %.3f percent confidence' % (100
|
121 |
|
122 |
input_image = normalize_array(input_image)
|
123 |
activation_1 = normalize_array(activation_1)
|
|
|
117 |
if output[0] < output[1]:
|
118 |
output = 'Planet predicted with %.3f percent confidence' % (100*output[1])
|
119 |
else:
|
120 |
+
output = 'No planet predicted with %.3f percent confidence' % (100*output[0])
|
121 |
|
122 |
input_image = normalize_array(input_image)
|
123 |
activation_1 = normalize_array(activation_1)
|