Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,9 +2,9 @@ import gradio as gr
|
|
| 2 |
import qrcode as qr
|
| 3 |
|
| 4 |
|
| 5 |
-
def make_qr(txt,fill,back):
|
| 6 |
out = f'{txt}'
|
| 7 |
-
qrm = qr.QRCode(border=
|
| 8 |
qrm.add_data(out)
|
| 9 |
qrm.make(fit=True)
|
| 10 |
img1 = qrm.make_image(fill_color=fill, back_color=back)
|
|
@@ -20,5 +20,5 @@ with gr.Blocks() as app:
|
|
| 20 |
border=gr.Number(value=1)
|
| 21 |
go_btn=gr.Button()
|
| 22 |
outp=gr.Image()
|
| 23 |
-
go_btn.click(make_qr,[inp,fill,back],outp)
|
| 24 |
app.queue(concurrency_count=10).launch()
|
|
|
|
| 2 |
import qrcode as qr
|
| 3 |
|
| 4 |
|
| 5 |
+
def make_qr(txt,fill,back,border):
|
| 6 |
out = f'{txt}'
|
| 7 |
+
qrm = qr.QRCode(border=border)
|
| 8 |
qrm.add_data(out)
|
| 9 |
qrm.make(fit=True)
|
| 10 |
img1 = qrm.make_image(fill_color=fill, back_color=back)
|
|
|
|
| 20 |
border=gr.Number(value=1)
|
| 21 |
go_btn=gr.Button()
|
| 22 |
outp=gr.Image()
|
| 23 |
+
go_btn.click(make_qr,[inp,fill,back,border],outp)
|
| 24 |
app.queue(concurrency_count=10).launch()
|