Update app.py
Browse files
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(
|
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 |
|