Update app.py
Browse files
app.py
CHANGED
@@ -261,7 +261,7 @@ def generate_labels(font_file=None, num_labels: int = 20):
|
|
261 |
if font_path is None or not os.path.exists(font_path):
|
262 |
font = ImageFont.load_default()
|
263 |
else:
|
264 |
-
font = ImageFont.truetype(font_path,
|
265 |
|
266 |
labels = ["".join(np.random.choice(list(CHARS), np.random.randint(4, 7))) for _ in range(num_labels)]
|
267 |
|
|
|
261 |
if font_path is None or not os.path.exists(font_path):
|
262 |
font = ImageFont.load_default()
|
263 |
else:
|
264 |
+
font = ImageFont.truetype(font_path, 25)
|
265 |
|
266 |
labels = ["".join(np.random.choice(list(CHARS), np.random.randint(4, 7))) for _ in range(num_labels)]
|
267 |
|