Pranav Shikarpur commited on
Commit
5ecf44d
1 Parent(s): 0531f26

fix: updated description

Browse files
Files changed (1) hide show
  1. app.py +10 -2
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="<center>Enter your your Pangea redact token (optional for custom settings), then put in your data and watch the magic happen 🪄. <br/>\
28
- Data redaction is powered by <a href=\"https://pangea.cloud/?utm_source=huggingface&utm_medium=redact-hash-demo\">Pangea's APIs</a> in this demo. To learn more about how to get your API keys and tokens to run this, watch this short <a href=\"https://www.youtube.com/watch?v=LNN5s_6G3Cc\" target=\"_blank\">walkthrough demo</a></center>",
 
 
 
 
 
 
 
 
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(