Update app.py
Browse files
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
|
| 78 |
-
"tomato": float(row.get("tomato
|
| 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
|