chrisis2 commited on
Commit
7cc69a7
·
verified ·
1 Parent(s): 7537b07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -31,9 +31,9 @@ def classify_food(image):
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:.1f}%** Wahrscheinlichkeit.\n\n"
36
- f"**CLIP Zero-Shot-Modell**: erkennt **{clip_top_label}** mit **{clip_top_score:.1f}%** Wahrscheinlichkeit."
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