emkessle commited on
Commit
8643d3e
·
verified ·
1 Parent(s): 01f458f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -74,8 +74,8 @@ def do_predict(pil_img: PIL.Image.Image):
74
 
75
  # For pretty ranked dict expected by gr.Label
76
  pretty_dict = {
77
- "no_tomato": float(row.get("no_tomato (0)", 0.0)),
78
- "tomato": float(row.get("tomato (1)", 0.0)),
79
  }
80
 
81
  return pretty_dict
 
74
 
75
  # For pretty ranked dict expected by gr.Label
76
  pretty_dict = {
77
+ "no_tomato": float(row.get("no_tomato", 0.0)),
78
+ "tomato": float(row.get("tomato", 0.0)),
79
  }
80
 
81
  return pretty_dict