Spaces:
Sleeping
Sleeping
Pranav Shikarpur
commited on
Commit
•
9957a3a
1
Parent(s):
5ecf44d
fix: prompt ~> data
Browse files
app.py
CHANGED
@@ -31,8 +31,8 @@ iface = gr.Interface(
|
|
31 |
"```python\n"
|
32 |
"from pangea.services import Redact\n"
|
33 |
"redact = Redact(\"token=<PANGEA_REDACT_TOKEN>\")\n"
|
34 |
-
"def
|
35 |
-
" return redact.redact(text=
|
36 |
"```",
|
37 |
allow_flagging="never"
|
38 |
)
|
|
|
31 |
"```python\n"
|
32 |
"from pangea.services import Redact\n"
|
33 |
"redact = Redact(\"token=<PANGEA_REDACT_TOKEN>\")\n"
|
34 |
+
"def clean_data(data):\n"
|
35 |
+
" return redact.redact(text=data).result.redacted_text\n"
|
36 |
"```",
|
37 |
allow_flagging="never"
|
38 |
)
|