Spaces:
Build error
Build error
Commit
·
695ab3c
1
Parent(s):
1e56791
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ def generate_an_image_from_text(text, text_size_, width, lenght):
|
|
| 38 |
# Create a drawing object
|
| 39 |
draw = ImageDraw.Draw(image)
|
| 40 |
# font def
|
| 41 |
-
|
| 42 |
# Get a list of all the font files in the directory
|
| 43 |
print("start generation")
|
| 44 |
font_files = glob.glob(os.path.join(dir_path, 'fonts', '*.ttf'))
|
|
|
|
| 38 |
# Create a drawing object
|
| 39 |
draw = ImageDraw.Draw(image)
|
| 40 |
# font def
|
| 41 |
+
dir_path = ''
|
| 42 |
# Get a list of all the font files in the directory
|
| 43 |
print("start generation")
|
| 44 |
font_files = glob.glob(os.path.join(dir_path, 'fonts', '*.ttf'))
|