Spaces:
Running
Running
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +48 -1
src/streamlit_app.py
CHANGED
|
@@ -43,7 +43,20 @@ st.markdown(
|
|
| 43 |
<div class="intro-text">
|
| 44 |
Large Language Models (LLMs) are increasingly trained and queried with data that may contain sensitive personal information.<br>
|
| 45 |
Before use, text is often anonymized with tools such as Microsoft’s Presidio or Anthropic’s PII Purifier.<br>
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
</div>
|
| 48 |
""",
|
| 49 |
unsafe_allow_html=True
|
|
@@ -51,6 +64,39 @@ st.markdown(
|
|
| 51 |
|
| 52 |
# --- Icon link buttons ---
|
| 53 |
st.markdown("""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
<div class="links-container">
|
| 55 |
<a class="link-button" href="https://arxiv.org/abs/XXXX.XXXXX" target="_blank">
|
| 56 |
<span class="link-icon">📄</span> Paper
|
|
@@ -67,6 +113,7 @@ st.markdown("""
|
|
| 67 |
</div>
|
| 68 |
""", unsafe_allow_html=True)
|
| 69 |
|
|
|
|
| 70 |
# --- Load dataset from Hugging Face ---
|
| 71 |
@st.cache_data
|
| 72 |
def load_results():
|
|
|
|
| 43 |
<div class="intro-text">
|
| 44 |
Large Language Models (LLMs) are increasingly trained and queried with data that may contain sensitive personal information.<br>
|
| 45 |
Before use, text is often anonymized with tools such as Microsoft’s Presidio or Anthropic’s PII Purifier.<br>
|
| 46 |
+
|
| 47 |
+
These tools are typically evaluated on their ability to remove explicit identifiers like names,
|
| 48 |
+
but their effectiveness at preventing re-identification is much less clear.
|
| 49 |
+
|
| 50 |
+
<b>Unique Between the Lines</b> is a synthetic benchmark that tests anonymization tools across domains and difficulty levels.
|
| 51 |
+
Using U.S. demographic statistics, we generate text with direct and indirect identifiers, anonymize it, and measure how well
|
| 52 |
+
an LLM-based attacker can still re-identify individuals.
|
| 53 |
+
The leaderboard tracks:
|
| 54 |
+
- Re-identification risk
|
| 55 |
+
- Utility (information preserved)
|
| 56 |
+
- Cost (compute overhead)
|
| 57 |
+
|
| 58 |
+
Submit your text anonymization tool and see how its performance compares against what's out there!
|
| 59 |
+
|
| 60 |
</div>
|
| 61 |
""",
|
| 62 |
unsafe_allow_html=True
|
|
|
|
| 64 |
|
| 65 |
# --- Icon link buttons ---
|
| 66 |
st.markdown("""
|
| 67 |
+
<style>
|
| 68 |
+
.links-container {
|
| 69 |
+
display: flex;
|
| 70 |
+
justify-content: center;
|
| 71 |
+
gap: 0.6rem;
|
| 72 |
+
margin: 1rem 0 2rem 0;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
/* Adapt colors to Streamlit theme automatically */
|
| 76 |
+
.link-button {
|
| 77 |
+
background-color: var(--secondary-background-color);
|
| 78 |
+
color: var(--text-color);
|
| 79 |
+
border-radius: 2rem;
|
| 80 |
+
padding: 0.4rem 0.9rem;
|
| 81 |
+
font-size: 0.95rem;
|
| 82 |
+
text-decoration: none;
|
| 83 |
+
display: flex;
|
| 84 |
+
align-items: center;
|
| 85 |
+
gap: 0.4rem;
|
| 86 |
+
transition: background-color 0.2s ease, color 0.2s ease;
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
.link-button:hover {
|
| 90 |
+
background-color: var(--primary-color);
|
| 91 |
+
color: white;
|
| 92 |
+
text-decoration: none;
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
.link-icon {
|
| 96 |
+
font-size: 1.1rem;
|
| 97 |
+
}
|
| 98 |
+
</style>
|
| 99 |
+
|
| 100 |
<div class="links-container">
|
| 101 |
<a class="link-button" href="https://arxiv.org/abs/XXXX.XXXXX" target="_blank">
|
| 102 |
<span class="link-icon">📄</span> Paper
|
|
|
|
| 113 |
</div>
|
| 114 |
""", unsafe_allow_html=True)
|
| 115 |
|
| 116 |
+
|
| 117 |
# --- Load dataset from Hugging Face ---
|
| 118 |
@st.cache_data
|
| 119 |
def load_results():
|