Spaces:
Sleeping
Sleeping
Update tools/ai_act_generator.py
Browse files
tools/ai_act_generator.py
CHANGED
|
@@ -17,6 +17,8 @@ import gradio as gr
|
|
| 17 |
from fpdf import FPDF
|
| 18 |
from langdetect import detect
|
| 19 |
|
|
|
|
|
|
|
| 20 |
# === PDF Export Function with Language Option ===
|
| 21 |
def export_text_to_pdf(text, output_path=None, language="fr"):
|
| 22 |
if output_path is None:
|
|
|
|
| 17 |
from fpdf import FPDF
|
| 18 |
from langdetect import detect
|
| 19 |
|
| 20 |
+
from tools.common import prepend_metadata_questions
|
| 21 |
+
|
| 22 |
# === PDF Export Function with Language Option ===
|
| 23 |
def export_text_to_pdf(text, output_path=None, language="fr"):
|
| 24 |
if output_path is None:
|