achiru commited on
Commit
63f34b6
1 Parent(s): 939851d

make borders less noticeable

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -61,7 +61,7 @@ def create_code(content: str):
61
  h = (h + 255 + offset_min) // 256 * 256
62
  if w > 1024:
63
  raise gr.Error("QR code is too large, please use a shorter content")
64
- bg = Image.new('L', (w, h), 255)
65
 
66
  # align on 16px grid
67
  coords = ((w - img.size[0]) // 2 // 16 * 16,
 
61
  h = (h + 255 + offset_min) // 256 * 256
62
  if w > 1024:
63
  raise gr.Error("QR code is too large, please use a shorter content")
64
+ bg = Image.new('L', (w, h), 128)
65
 
66
  # align on 16px grid
67
  coords = ((w - img.size[0]) // 2 // 16 * 16,