Spaces:
Build error
Build error
Update components/cards.py
Browse files- components/cards.py +1 -1
components/cards.py
CHANGED
|
@@ -6,7 +6,7 @@ def create_food_card(food_name):
|
|
| 6 |
nutrition = food_info["nutrition"]
|
| 7 |
portion_size = food_info["portion_size"]
|
| 8 |
|
| 9 |
-
# Generate HTML for the
|
| 10 |
card_html = f"""
|
| 11 |
<div class="food-card">
|
| 12 |
<img src="{image_src}" alt="{food_name}" class="food-image" />
|
|
|
|
| 6 |
nutrition = food_info["nutrition"]
|
| 7 |
portion_size = food_info["portion_size"]
|
| 8 |
|
| 9 |
+
# Generate HTML for the popup content
|
| 10 |
card_html = f"""
|
| 11 |
<div class="food-card">
|
| 12 |
<img src="{image_src}" alt="{food_name}" class="food-image" />
|