John6666 commited on
Commit
db66dfd
·
verified ·
1 Parent(s): 094b47b

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -30,9 +30,9 @@ def get_cmp_image(im1: Image.Image, im2: Image.Image, sigmas: float):
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, font=font)
34
- draw.text((64, 64), 'Default Flux', 'red')
35
- draw.text((im1.width + 64, 64), f'Sigmas * factor {sigmas}', 'red')
36
  return dst
37
 
38
  @spaces.GPU(duration=90)
 
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)
36
  return dst
37
 
38
  @spaces.GPU(duration=90)