Added evolution detection
Browse files
components/display_structured_data.py
CHANGED
|
@@ -10,8 +10,11 @@ def render_card_data(result: dict):
|
|
| 10 |
# Column one filled with name and HP
|
| 11 |
with col1:
|
| 12 |
st.metric("Name", result.get("name") or "Not detected")
|
|
|
|
| 13 |
st.metric("HP", result.get("hp") or "Not detected")
|
| 14 |
|
|
|
|
|
|
|
| 15 |
# Column two filled with Pokemon types
|
| 16 |
with col2:
|
| 17 |
types = result.get("types")
|
|
|
|
| 10 |
# Column one filled with name and HP
|
| 11 |
with col1:
|
| 12 |
st.metric("Name", result.get("name") or "Not detected")
|
| 13 |
+
|
| 14 |
st.metric("HP", result.get("hp") or "Not detected")
|
| 15 |
|
| 16 |
+
st.metric("Evolved", result.get("is_evolved") or "Not detected")
|
| 17 |
+
|
| 18 |
# Column two filled with Pokemon types
|
| 19 |
with col2:
|
| 20 |
types = result.get("types")
|