Dave67350 commited on
Commit
b5deb32
·
verified ·
1 Parent(s): 3804379

Update tools/ai_act_generator.py

Browse files
Files changed (1) hide show
  1. tools/ai_act_generator.py +15 -1
tools/ai_act_generator.py CHANGED
@@ -180,6 +180,20 @@ def launch_step_by_step_ui():
180
  """
181
  ) as demo:
182
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
183
  # GDPR Notice
184
  gr.Markdown("""
185
  ### 🔒 GDPR Notice
@@ -192,7 +206,6 @@ def launch_step_by_step_ui():
192
  initial_message = gr.ChatMessage(role="assistant", content=f"""
193
  👋 Welcome! I will guide you through the AI Act compliance form.
194
  Let's begin with a few questions to generate your compliance register.
195
-
196
  {initial_question}
197
  """)
198
  stored_messages = [initial_message]
@@ -222,6 +235,7 @@ Let's begin with a few questions to generate your compliance register.
222
  demo.launch(show_api=False)
223
 
224
 
 
225
  def get_questions():
226
  return QUESTIONS
227
 
 
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
 
206
  initial_message = gr.ChatMessage(role="assistant", content=f"""
207
  👋 Welcome! I will guide you through the AI Act compliance form.
208
  Let's begin with a few questions to generate your compliance register.
 
209
  {initial_question}
210
  """)
211
  stored_messages = [initial_message]
 
235
  demo.launch(show_api=False)
236
 
237
 
238
+
239
  def get_questions():
240
  return QUESTIONS
241