LEWOPO commited on
Commit
383e1d7
1 Parent(s): 43ccbb4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -76,7 +76,7 @@ def classifier_image(image_path):
76
 
77
  # Interpréter la prédiction
78
  class_labels = [ 'Taro', 'koki', 'Couscous_gombo' ,'Ero', 'Ndole', 'Nkui', 'Okok', 'riz','riz_sauté']
79
- results = {class_labels[i]: float(predictions[0][i]*100) for i in range(4)}
80
  # for i, class_label in enumerate(class_labels):
81
  # results.append((class_label, predictions[0][i] * 100))
82
 
 
76
 
77
  # Interpréter la prédiction
78
  class_labels = [ 'Taro', 'koki', 'Couscous_gombo' ,'Ero', 'Ndole', 'Nkui', 'Okok', 'riz','riz_sauté']
79
+ results = {class_labels[i]: float(predictions[0][i]*100) for i in range(8)}
80
  # for i, class_label in enumerate(class_labels):
81
  # results.append((class_label, predictions[0][i] * 100))
82