Dave67350 commited on
Commit
3c10312
·
verified ·
1 Parent(s): 4a2ee59

Update tools/ai_act_generator.py

Browse files
Files changed (1) hide show
  1. tools/ai_act_generator.py +3 -5
tools/ai_act_generator.py CHANGED
@@ -1,5 +1,3 @@
1
- # NEW TOOL: Generate AI Act Compliance Register
2
- from smolagents import tool
3
  c#!/usr/bin/env python
4
  # coding=utf-8
5
  import csv
@@ -123,8 +121,8 @@ Generated by AI Act Assistant.
123
  writer.writerow(row_data)
124
 
125
  pdf_path = export_text_to_pdf(filled_template, language=detected_lang)
126
- return f"{flag} Language detected: {detected_lang.upper()}
127
- ✅ All answers received. Download your AI Act compliance PDF below.", {"done": True, "pdf": pdf_path}, pdf_path
128
 
129
  # === UI for Step-by-Step Form ===
130
  def launch_step_by_step_ui():
@@ -162,4 +160,4 @@ What is the name of your organization?
162
  demo.launch()
163
 
164
  if __name__ == "__main__":
165
- launch_step_by_step_ui()
 
 
 
1
  c#!/usr/bin/env python
2
  # coding=utf-8
3
  import csv
 
121
  writer.writerow(row_data)
122
 
123
  pdf_path = export_text_to_pdf(filled_template, language=detected_lang)
124
+ return f"""{flag} Language detected: {detected_lang.upper()}
125
+ ✅ All answers received. Download your AI Act compliance PDF below.""", {"done": True, "pdf": pdf_path}, pdf_path
126
 
127
  # === UI for Step-by-Step Form ===
128
  def launch_step_by_step_ui():
 
160
  demo.launch()
161
 
162
  if __name__ == "__main__":
163
+ launch_step_by_step_ui()