Spaces:
Sleeping
Sleeping
Update tools/ai_act_generator.py
Browse files- tools/ai_act_generator.py +9 -16
tools/ai_act_generator.py
CHANGED
|
@@ -171,29 +171,21 @@ def launch_step_by_step_ui():
|
|
| 171 |
css="""
|
| 172 |
footer,
|
| 173 |
a[href*="gradio.app"],
|
| 174 |
-
a[href*="huggingface.co"]
|
|
|
|
|
|
|
|
|
|
|
|
|
| 175 |
button[aria-label="Share"],
|
| 176 |
button[data-testid="share-button"],
|
| 177 |
button[title="Share"] {
|
| 178 |
-
|
|
|
|
|
|
|
| 179 |
}
|
| 180 |
"""
|
| 181 |
) as demo:
|
| 182 |
|
| 183 |
-
# Reinforce CSS dynamically with HTML injection
|
| 184 |
-
gr.HTML("""
|
| 185 |
-
<style>
|
| 186 |
-
footer,
|
| 187 |
-
a[href*="gradio.app"],
|
| 188 |
-
a[href*="huggingface.co"],
|
| 189 |
-
button[aria-label="Share"],
|
| 190 |
-
button[data-testid="share-button"],
|
| 191 |
-
button[title="Share"] {
|
| 192 |
-
display: none !important;
|
| 193 |
-
}
|
| 194 |
-
</style>
|
| 195 |
-
""")
|
| 196 |
-
|
| 197 |
# GDPR Notice
|
| 198 |
gr.Markdown("""
|
| 199 |
### 🔒 GDPR Notice
|
|
@@ -236,6 +228,7 @@ Let's begin with a few questions to generate your compliance register.
|
|
| 236 |
|
| 237 |
|
| 238 |
|
|
|
|
| 239 |
def get_questions():
|
| 240 |
return QUESTIONS
|
| 241 |
|
|
|
|
| 171 |
css="""
|
| 172 |
footer,
|
| 173 |
a[href*="gradio.app"],
|
| 174 |
+
a[href*="huggingface.co"] {
|
| 175 |
+
display: none !important;
|
| 176 |
+
}
|
| 177 |
+
|
| 178 |
+
/* Disable interaction with share buttons but keep visible */
|
| 179 |
button[aria-label="Share"],
|
| 180 |
button[data-testid="share-button"],
|
| 181 |
button[title="Share"] {
|
| 182 |
+
pointer-events: none !important;
|
| 183 |
+
opacity: 0.4 !important;
|
| 184 |
+
cursor: default !important;
|
| 185 |
}
|
| 186 |
"""
|
| 187 |
) as demo:
|
| 188 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 189 |
# GDPR Notice
|
| 190 |
gr.Markdown("""
|
| 191 |
### 🔒 GDPR Notice
|
|
|
|
| 228 |
|
| 229 |
|
| 230 |
|
| 231 |
+
|
| 232 |
def get_questions():
|
| 233 |
return QUESTIONS
|
| 234 |
|