Spaces:
Sleeping
Sleeping
File size: 378 Bytes
7de58f8 ca81ab8 7de58f8 ca81ab8 7de58f8 ac0e2ca ca81ab8 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import gradio as gr
from lib.masker.masker import run_mask
def mask(text, options):
return run_mask(text, options)
demo = gr.Interface(
fn=mask,
inputs=[
"text",
gr.CheckboxGroup(
choices=["name", "email", "phone", "credit_card", "local"],
label="Select Items"
)
],
outputs="text")
demo.launch(debug=True) |