Spaces:
Runtime error
Runtime error
Mike Frantz
commited on
Commit
•
5e77ca5
1
Parent(s):
2418652
added a few examples
Browse files
app.py
CHANGED
@@ -83,5 +83,15 @@ def anonymize(text, min_len=3):
|
|
83 |
return t
|
84 |
|
85 |
|
86 |
-
gr.Interface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
|
|
|
83 |
return t
|
84 |
|
85 |
|
86 |
+
gr.Interface(
|
87 |
+
anonymize,
|
88 |
+
inputs='text',
|
89 |
+
outputs='text',
|
90 |
+
examples=[
|
91 |
+
"Hi, my name is Mike and my phone number is 1-234-567-9000",
|
92 |
+
"Hi, my name is Mike and my email address is my_name@my_domain.com",
|
93 |
+
"Hi, my name is Mike and my IP address is 127.0.0.1",
|
94 |
+
# "Hi, my name is Mike and my credit card is 1200 3859 8281 0593"
|
95 |
+
]
|
96 |
+
).launch(debug=True)
|
97 |
|