kritsg commited on
Commit
4790b80
·
1 Parent(s): 214a191

modified output

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. image_posterior.py +1 -1
app.py CHANGED
@@ -71,7 +71,7 @@ def segmentation_generation(image_name, c_width, n_top, n_gif_imgs):
71
  verbose=True)
72
  rout = exp_init.explain(classifier_f=cur_model,
73
  data=np.ones_like(xtrain[0]),
74
- label=int(prediction),
75
  cred_width=c_width,
76
  focus_sample=False,
77
  l2=False)
 
71
  verbose=True)
72
  rout = exp_init.explain(classifier_f=cur_model,
73
  data=np.ones_like(xtrain[0]),
74
+ label=int(prediction[0]),
75
  cred_width=c_width,
76
  focus_sample=False,
77
  l2=False)
image_posterior.py CHANGED
@@ -96,7 +96,7 @@ def create_gif(explanation_blr, img_name, segments, image, prediction, n_images=
96
  + "</div>"
97
  )
98
 
99
- return html, f"Predction was {prediction}: {labels_dict[prediction]}"
100
 
101
 
102
 
 
96
  + "</div>"
97
  )
98
 
99
+ return html, f"Predction was {prediction}: {labels_dict[str(prediction)]}"
100
 
101
 
102