Omnibus commited on
Commit
6af80ba
1 Parent(s): 06c1b18

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import qrcode as qr
2
+
3
+
4
+ def make_qr(txt,fill,back):
5
+ out = f'{txt}'
6
+ qrm = qr.QRCode()
7
+ qrm.add_data(out)
8
+ qrm.make(fit=True)
9
+ img1 = qrm.make_image(fill_color=fill, back_color=back)
10
+ img1.save("im2.png")
11
+ return "im2.png"