Sanchez fernandez commited on
Commit
3c88f48
·
1 Parent(s): ed68314

Include similarity score

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -480,7 +480,7 @@ def images_from_molecule(top_n, model_path):
480
  im = reshape_image(image)
481
 
482
  index = n+1
483
- score = top_probs[n] * 100
484
  col.image(im, caption=f"Top {index}. Score: {round(score)}", width=200)
485
 
486
 
 
480
  im = reshape_image(image)
481
 
482
  index = n+1
483
+ score = float(top_probs[n]) * 100
484
  col.image(im, caption=f"Top {index}. Score: {round(score)}", width=200)
485
 
486