Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,8 +58,12 @@ def main():
|
|
| 58 |
st.write(f"**Description:** {plant_info['description']}")
|
| 59 |
st.write(f"**Sun Requirements:** {plant_info['sun_requirements']}")
|
| 60 |
st.write(f"**Watering Instructions:** {plant_info['watering']}")
|
|
|
|
|
|
|
| 61 |
if plant_info["image_url"]:
|
| 62 |
st.image(plant_info["image_url"], caption=plant_info["name"], width=300)
|
| 63 |
-
|
|
|
|
|
|
|
| 64 |
if __name__ == "__main__":
|
| 65 |
-
main()
|
|
|
|
| 58 |
st.write(f"**Description:** {plant_info['description']}")
|
| 59 |
st.write(f"**Sun Requirements:** {plant_info['sun_requirements']}")
|
| 60 |
st.write(f"**Watering Instructions:** {plant_info['watering']}")
|
| 61 |
+
|
| 62 |
+
# Display the image if available, otherwise show "Picture not available"
|
| 63 |
if plant_info["image_url"]:
|
| 64 |
st.image(plant_info["image_url"], caption=plant_info["name"], width=300)
|
| 65 |
+
else:
|
| 66 |
+
st.write("**Picture not available**")
|
| 67 |
+
|
| 68 |
if __name__ == "__main__":
|
| 69 |
+
main()
|