Spaces:
Sleeping
Sleeping
Create app.py
Browse files
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"
|