Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -82,8 +82,8 @@ def create_label(background_image, model_data):
|
|
82 |
# Use Inter_24pt-Bold.ttf for the title
|
83 |
title_font = ImageFont.truetype("Inter_24pt-Bold.ttf", size=16) # Bold for title
|
84 |
# Use Inter-Regular.ttf for details and energy
|
85 |
-
details_font = ImageFont.truetype("
|
86 |
-
energy_font = ImageFont.truetype("
|
87 |
except Exception as e:
|
88 |
st.error(f"Font loading failed: {e}")
|
89 |
return label_img
|
|
|
82 |
# Use Inter_24pt-Bold.ttf for the title
|
83 |
title_font = ImageFont.truetype("Inter_24pt-Bold.ttf", size=16) # Bold for title
|
84 |
# Use Inter-Regular.ttf for details and energy
|
85 |
+
details_font = ImageFont.truetype("Inter_18pt-Regular.ttf", size=12) # Regular for details
|
86 |
+
energy_font = ImageFont.truetype("Inter_18pt-Medium.ttf", size=14) # Medium for energy
|
87 |
except Exception as e:
|
88 |
st.error(f"Font loading failed: {e}")
|
89 |
return label_img
|