Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def classify_image(inp):
|
|
| 42 |
result[label] = float(predicted_class_indices[i])
|
| 43 |
except KeyError:
|
| 44 |
print(f"KeyError: Label not found for index {predicted_class_indices[i]}")
|
| 45 |
-
return
|
| 46 |
|
| 47 |
|
| 48 |
|
|
|
|
| 42 |
result[label] = float(predicted_class_indices[i])
|
| 43 |
except KeyError:
|
| 44 |
print(f"KeyError: Label not found for index {predicted_class_indices[i]}")
|
| 45 |
+
return prediction
|
| 46 |
|
| 47 |
|
| 48 |
|