jpterry commited on
Commit
420e766
·
1 Parent(s): 92e33c7

minor bug fix

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 - 100*output[0])
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)