Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -90,9 +90,9 @@ def create_label_single_pass(background_image, model_data, final_size=(520, 728)
|
|
| 90 |
# 3. Place your text.
|
| 91 |
# You may need to experiment with x/y coordinates or font sizes
|
| 92 |
# to make it look right in 520×728.
|
| 93 |
-
title_x, title_y =
|
| 94 |
details_x, details_y = 480, 256
|
| 95 |
-
energy_x, energy_y =
|
| 96 |
|
| 97 |
# Text 1 (title)
|
| 98 |
draw.text((title_x, title_y), str(model_data['model']), font=title_font, fill="black")
|
|
|
|
| 90 |
# 3. Place your text.
|
| 91 |
# You may need to experiment with x/y coordinates or font sizes
|
| 92 |
# to make it look right in 520×728.
|
| 93 |
+
title_x, title_y = 33, 150
|
| 94 |
details_x, details_y = 480, 256
|
| 95 |
+
energy_x, energy_y = 480, 472
|
| 96 |
|
| 97 |
# Text 1 (title)
|
| 98 |
draw.text((title_x, title_y), str(model_data['model']), font=title_font, fill="black")
|