jpterry commited on
Commit
6bfda96
·
1 Parent(s): 952c48d

minor updates

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 %f percent confidence' % (100*output[1])
164
  else:
165
- output = 'No planet predicted with %f percent confidence' % (100 - 100*output[0])
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)