marcelo3macedo commited on
Commit
ac0e2ca
·
1 Parent(s): ca81ab8

feat: adding options

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -4,5 +4,15 @@ from lib.masker.masker import run_mask
4
  def mask(text, options):
5
  return run_mask(text, options)
6
 
7
- demo = gr.Interface(fn=mask, inputs=["text", "text"], outputs="text")
 
 
 
 
 
 
 
 
 
 
8
  demo.launch(debug=True)
 
4
  def mask(text, options):
5
  return run_mask(text, options)
6
 
7
+ demo = gr.Interface(
8
+ fn=mask,
9
+ inputs=[
10
+ "text",
11
+ gr.CheckboxGroup(
12
+ choices=["name", "email", "phone", "credit_card", "local"],
13
+ label="Select Items"
14
+ )
15
+ ],
16
+ outputs="text")
17
+
18
  demo.launch(debug=True)