Spaces:
Sleeping
Sleeping
Pranav Shikarpur
commited on
Commit
•
5ecf44d
1
Parent(s):
0531f26
fix: updated description
Browse files
app.py
CHANGED
@@ -24,8 +24,16 @@ iface = gr.Interface(
|
|
24 |
inputs=[pangea_token_input, input_text],
|
25 |
outputs=[output_text1],
|
26 |
title="Data Redaction Playground",
|
27 |
-
description="
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
allow_flagging="never"
|
30 |
)
|
31 |
iface.launch(
|
|
|
24 |
inputs=[pangea_token_input, input_text],
|
25 |
outputs=[output_text1],
|
26 |
title="Data Redaction Playground",
|
27 |
+
description="Enter your your Pangea redact token (optional for custom settings), then put in your data and watch the magic happen 🪄.\n\n"
|
28 |
+
"Data redaction is powered by [Pangea's APIs](https://pangea.cloud/?utm_source=huggingface&utm_medium=redact-hash-demo) in this demo. "
|
29 |
+
"To learn more about how to get your API keys and tokens to run this, watch this short [walkthrough demo](https://www.youtube.com/watch?v=LNN5s_6G3Cc).\n\n"
|
30 |
+
"All of this in 3 lines of code:\n"
|
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 |
)
|
39 |
iface.launch(
|