Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -164,7 +164,7 @@ def predict_image(pil_image):
|
|
| 164 |
predicted_class = class_names[np.argmax(predictions[0])]
|
| 165 |
|
| 166 |
info = flower_info.get(predicted_class, "No additional information available.")
|
| 167 |
-
return f"
|
| 168 |
except Exception as e:
|
| 169 |
return "Error in prediction", str(e)
|
| 170 |
|
|
|
|
| 164 |
predicted_class = class_names[np.argmax(predictions[0])]
|
| 165 |
|
| 166 |
info = flower_info.get(predicted_class, "No additional information available.")
|
| 167 |
+
return f"Identified as: {predicted_class}", info
|
| 168 |
except Exception as e:
|
| 169 |
return "Error in prediction", str(e)
|
| 170 |
|