John6666 commited on
Commit
99aab2a
·
verified ·
1 Parent(s): db66dfd

Upload 2 files

Browse files
Files changed (2) hide show
  1. Roboto-Regular.ttf +0 -0
  2. app.py +1 -1
Roboto-Regular.ttf ADDED
Binary file (168 kB). View file
 
app.py CHANGED
@@ -29,7 +29,7 @@ def get_cmp_image(im1: Image.Image, im2: Image.Image, sigmas: float):
29
  dst = Image.new('RGB', (im1.width + im2.width, im1.height))
30
  dst.paste(im1.convert('RGB'), (0, 0))
31
  dst.paste(im2.convert('RGB'), (im1.width, 0))
32
- font = ImageFont.truetype('/usr/share/fonts/truetype/freefont/FreeMono.ttf', 36, encoding='unic')
33
  draw = ImageDraw.Draw(dst)
34
  draw.text((64, 64), 'Default Flux', 'red', font=font)
35
  draw.text((im1.width + 64, 64), f'Sigmas * factor {sigmas}', 'red', font=font)
 
29
  dst = Image.new('RGB', (im1.width + im2.width, im1.height))
30
  dst.paste(im1.convert('RGB'), (0, 0))
31
  dst.paste(im2.convert('RGB'), (im1.width, 0))
32
+ font = ImageFont.truetype('Roboto-Regular.ttf', 36, encoding='unic')
33
  draw = ImageDraw.Draw(dst)
34
  draw.text((64, 64), 'Default Flux', 'red', font=font)
35
  draw.text((im1.width + 64, 64), f'Sigmas * factor {sigmas}', 'red', font=font)