John6666 commited on
Commit
c68697f
·
verified ·
1 Parent(s): 2b96e8b

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,8 +31,8 @@ def get_cmp_image(im1: Image.Image, im2: Image.Image, sigmas: float):
31
  dst.paste(im2.convert('RGB'), (im1.width, 0))
32
  font = ImageFont.truetype('Roboto-Regular.ttf', 72, 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)
36
  return dst
37
 
38
  @spaces.GPU(duration=90)
 
31
  dst.paste(im2.convert('RGB'), (im1.width, 0))
32
  font = ImageFont.truetype('Roboto-Regular.ttf', 72, encoding='unic')
33
  draw = ImageDraw.Draw(dst)
34
+ draw.text((64, im1.height - 128), 'Default Flux', 'red', font=font)
35
+ draw.text((im1.width + 64, im1.height - 128), f'Sigmas * factor {sigmas}', 'red', font=font)
36
  return dst
37
 
38
  @spaces.GPU(duration=90)