amandasarubbi commited on
Commit
cda3545
·
1 Parent(s): 062d0f5
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -49,10 +49,8 @@ def predict(img, model_name):
49
  preds = anim_learn.predict(img)
50
 
51
  label_pred = str(preds[0])
52
- acc = [float(preds[2][i]) for i in range(len(preds[2])) if preds[2][i] > 0.5]
53
- pred = {label_pred: float(acc[0])}
54
 
55
- return pred
56
  #########################################################################
57
  title = "TM-TKO Trademark Logo Image Classification Model"
58
  description = "Users can upload an image and corresponding image file name to get US design-code standard predictions on a trained model that utilizes the benchmark ResNet50 architecture."
 
49
  preds = anim_learn.predict(img)
50
 
51
  label_pred = str(preds[0])
 
 
52
 
53
+ return label_pred
54
  #########################################################################
55
  title = "TM-TKO Trademark Logo Image Classification Model"
56
  description = "Users can upload an image and corresponding image file name to get US design-code standard predictions on a trained model that utilizes the benchmark ResNet50 architecture."