Kvikontent commited on
Commit
64f3bc6
·
1 Parent(s): 964c215

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -10
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=[gr.inputs.Textbox(label="URL"),
54
- gr.inputs.Textbox(label="Color"),
55
- gr.inputs.Checkbox(label="Gradient"),
56
- gr.inputs.ColorPicker(label="Gradient Colors", n_colors=2),
57
- gr.inputs.Number(label="Border Radius"),
58
- gr.inputs.File(label="Logo")],
 
 
59
  outputs="image",
60
  title="QR Code Generator",
61
  description="Enter a URL and customize the QR code appearance",
62
- examples=[["instagram.com", "#FF0000", True, ["#FF0000", "#0000FF"], 10, None],
63
- ["twitter.com", "#00FF00", False, [], 0, "logo.png"],
64
- ["huggingface.co", "#0000FF", True, ["#FF0000", "#00FF00"], 15, "logo.png"]]
 
 
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()