Spaces:
Runtime error
Runtime error
Commit
·
291126e
1
Parent(s):
f2956e7
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def drawImage(text, prompt): #(text, font)
|
|
20 |
out = Image.new("RGB", (512, 512), (0, 0, 0))
|
21 |
#add some code here to move font to font-directory
|
22 |
font = './font-directory/DimpleSans-Regular.otf'
|
23 |
-
fnt = ImageFont.truetype(font,
|
24 |
d = ImageDraw.Draw(out)
|
25 |
d.multiline_text((16, 64), text, font=fnt, fill=(255, 255, 255))
|
26 |
|
|
|
20 |
out = Image.new("RGB", (512, 512), (0, 0, 0))
|
21 |
#add some code here to move font to font-directory
|
22 |
font = './font-directory/DimpleSans-Regular.otf'
|
23 |
+
fnt = ImageFont.truetype(font, 240)
|
24 |
d = ImageDraw.Draw(out)
|
25 |
d.multiline_text((16, 64), text, font=fnt, fill=(255, 255, 255))
|
26 |
|