TheFrenchDemos commited on
Commit
2cb398d
·
1 Parent(s): cdf88fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -92,7 +92,7 @@ def calculate_rewards(subscription, num_generations, author_share, ro_share, num
92
  image2 = Image.open("static/2.webp")
93
  features1 = get_ft(model, image1)
94
  features2 = get_ft(model, image2)
95
- euclid = np.linalg.norm(features1 - features2)
96
  else:
97
  euclid = 0 # pas d'image, euclidienne à 0
98
  except Exception as e:
 
92
  image2 = Image.open("static/2.webp")
93
  features1 = get_ft(model, image1)
94
  features2 = get_ft(model, image2)
95
+ euclid = float(np.linalg.norm(features1 - features2))
96
  else:
97
  euclid = 0 # pas d'image, euclidienne à 0
98
  except Exception as e: