Pranav Shikarpur commited on
Commit
9957a3a
1 Parent(s): 5ecf44d

fix: prompt ~> data

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 clean_prompt(prompt):\n"
35
- " return redact.redact(text=prompt).result.redacted_text\n"
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
  )