Update predict.py
Browse files- predict.py +2 -2
predict.py
CHANGED
|
@@ -37,9 +37,9 @@ class Predictor:
|
|
| 37 |
padded_waveform_path
|
| 38 |
], check=True)
|
| 39 |
|
| 40 |
-
# Create an image using ImageMagick
|
| 41 |
subprocess.run([
|
| 42 |
-
'convert', '-background', bg_color, '-fill', bars_color, '-font', '
|
| 43 |
'-pointsize', '48', '-size', '900x367', '-gravity', 'center', f'caption:{caption_text}',
|
| 44 |
'-bordercolor', bg_color, '-border', '40', background_image_path
|
| 45 |
], check=True)
|
|
|
|
| 37 |
padded_waveform_path
|
| 38 |
], check=True)
|
| 39 |
|
| 40 |
+
# Create an image using ImageMagick with provided font
|
| 41 |
subprocess.run([
|
| 42 |
+
'convert', '-background', bg_color, '-fill', bars_color, '-font', '/src/fonts/Roboto-Black.ttf',
|
| 43 |
'-pointsize', '48', '-size', '900x367', '-gravity', 'center', f'caption:{caption_text}',
|
| 44 |
'-bordercolor', bg_color, '-border', '40', background_image_path
|
| 45 |
], check=True)
|