Spaces:
Runtime error
Runtime error
Commit
·
64f3bc6
1
Parent(s):
964c215
Update app.py
Browse files
app.py
CHANGED
@@ -50,18 +50,22 @@ def generate_qrcode(url, color, gradient, gradient_colors, border_radius, logo):
|
|
50 |
|
51 |
iface = gr.Interface(
|
52 |
fn=generate_qrcode,
|
53 |
-
inputs=[
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
|
|
|
|
59 |
outputs="image",
|
60 |
title="QR Code Generator",
|
61 |
description="Enter a URL and customize the QR code appearance",
|
62 |
-
examples=[
|
63 |
-
|
64 |
-
|
|
|
|
|
65 |
)
|
66 |
|
67 |
-
iface.launch()
|
|
|
50 |
|
51 |
iface = gr.Interface(
|
52 |
fn=generate_qrcode,
|
53 |
+
inputs=[
|
54 |
+
gr.inputs.Textbox(label="URL"),
|
55 |
+
gr.ColorPicker(label="Color"),
|
56 |
+
gr.inputs.Checkbox(label="Gradient"),
|
57 |
+
gr.ColorPicker(label="Gradient Colors", n_colors=2),
|
58 |
+
gr.inputs.Number(label="Border Radius"),
|
59 |
+
gr.inputs.File(label="Logo")
|
60 |
+
],
|
61 |
outputs="image",
|
62 |
title="QR Code Generator",
|
63 |
description="Enter a URL and customize the QR code appearance",
|
64 |
+
examples=[
|
65 |
+
["instagram.com", "#FF0000", True, ["#FF0000", "#0000FF"], 10, None],
|
66 |
+
["twitter.com", "#00FF00", False, [], 0, "logo.png"],
|
67 |
+
["huggingface.co", "#0000FF", True, ["#FF0000", "#00FF00"], 15, "logo.png"]
|
68 |
+
]
|
69 |
)
|
70 |
|
71 |
+
iface.launch()
|