Spaces:
Runtime error
Runtime error
Commit
·
78da47e
1
Parent(s):
0318394
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def drawImage(text): #add another argument for prompt later
|
|
10 |
out = Image.new("RGB", (512, 512), (0, 0, 0))
|
11 |
#move font to font-directory
|
12 |
font = './font-directory/DimpleSans-Regular.otf'
|
13 |
-
fnt = ImageFont.truetype(font,
|
14 |
d = ImageDraw.Draw(out)
|
15 |
#d.multiline_text((10, 64), text, fill=(255, 255, 255))
|
16 |
d.multiline_text((10, 64), text, font=fnt, fill=(255, 255, 255))
|
|
|
10 |
out = Image.new("RGB", (512, 512), (0, 0, 0))
|
11 |
#move font to font-directory
|
12 |
font = './font-directory/DimpleSans-Regular.otf'
|
13 |
+
fnt = ImageFont.truetype(font, 160)
|
14 |
d = ImageDraw.Draw(out)
|
15 |
#d.multiline_text((10, 64), text, fill=(255, 255, 255))
|
16 |
d.multiline_text((10, 64), text, font=fnt, fill=(255, 255, 255))
|