Update app.py
Browse files
app.py
CHANGED
|
@@ -31,9 +31,9 @@ def classify_food(image):
|
|
| 31 |
|
| 32 |
# Formatierte Zusammenfassung
|
| 33 |
summary = (
|
| 34 |
-
"
|
| 35 |
-
f"**Trainiertes ViT-Modell**: erkennt **{vit_top_label}** mit **{vit_top_score:.
|
| 36 |
-
f"**CLIP Zero-Shot-Modell**: erkennt **{clip_top_label}** mit **{clip_top_score:.
|
| 37 |
)
|
| 38 |
|
| 39 |
return {"Trainiertes ViT-Modell": vit_output, "CLIP Zero-Shot": clip_output}, summary
|
|
|
|
| 31 |
|
| 32 |
# Formatierte Zusammenfassung
|
| 33 |
summary = (
|
| 34 |
+
"### Höchste Vorhersagewahrscheinlichkeit pro Modell:\n\n"
|
| 35 |
+
f"**Trainiertes ViT-Modell**: erkennt **{vit_top_label}** mit **{vit_top_score:.3f}%** Wahrscheinlichkeit.\n\n"
|
| 36 |
+
f"**CLIP Zero-Shot-Modell**: erkennt **{clip_top_label}** mit **{clip_top_score:.3f}%** Wahrscheinlichkeit."
|
| 37 |
)
|
| 38 |
|
| 39 |
return {"Trainiertes ViT-Modell": vit_output, "CLIP Zero-Shot": clip_output}, summary
|