minor updates
Browse files
app.py
CHANGED
@@ -160,9 +160,9 @@ def predict_and_analyze(model_name, num_channels, dim, image):
|
|
160 |
print("Activations and predictions finished")
|
161 |
|
162 |
if output[0] < output[1]:
|
163 |
-
output = 'Planet predicted with
|
164 |
else:
|
165 |
-
output = 'No planet predicted with
|
166 |
|
167 |
input_image = normalize_array(input_image)
|
168 |
activation_1 = normalize_array(activation_1)
|
|
|
160 |
print("Activations and predictions finished")
|
161 |
|
162 |
if output[0] < output[1]:
|
163 |
+
output = 'Planet predicted with %.3f percent confidence' % (100*output[1])
|
164 |
else:
|
165 |
+
output = 'No planet predicted with %.3f percent confidence' % (100 - 100*output[0])
|
166 |
|
167 |
input_image = normalize_array(input_image)
|
168 |
activation_1 = normalize_array(activation_1)
|