bgamazay commited on
Commit
d52d12b
·
verified ·
1 Parent(s): 4d74767

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -70,7 +70,7 @@ def create_label(background_image, model_data):
70
  # Choose a font and size. Change path/size as needed.
71
  # If you don't have a custom font file, you can use a PIL built-in font.
72
  try:
73
- font = ImageFont.truetype("Roboto-Regular.ttf", 50) # or "Arial.ttf", etc.
74
  except:
75
  # Fallback to a default PIL font if 'arial.ttf' is not found
76
  font = ImageFont.load_default()
@@ -78,9 +78,9 @@ def create_label(background_image, model_data):
78
  # You can customize the positions, colors, etc. For instance:
79
  # We'll just place the text in a simple stacked format at a fixed position.
80
  # Position variables (x, y) - Adjust as needed.
81
- x_position = 100
82
  y_position = 400
83
- line_spacing = 10
84
 
85
  # Extracting data from the row. Customize these lines based on your CSV columns.
86
  model_name = f"Model: {model_data['Model']}"
 
70
  # Choose a font and size. Change path/size as needed.
71
  # If you don't have a custom font file, you can use a PIL built-in font.
72
  try:
73
+ font = ImageFont.truetype("Roboto-Regular.ttf", 100) # or "Arial.ttf", etc.
74
  except:
75
  # Fallback to a default PIL font if 'arial.ttf' is not found
76
  font = ImageFont.load_default()
 
78
  # You can customize the positions, colors, etc. For instance:
79
  # We'll just place the text in a simple stacked format at a fixed position.
80
  # Position variables (x, y) - Adjust as needed.
81
+ x_position = 150
82
  y_position = 400
83
+ line_spacing = 20
84
 
85
  # Extracting data from the row. Customize these lines based on your CSV columns.
86
  model_name = f"Model: {model_data['Model']}"