Spaces:
Sleeping
Sleeping
Update Gradio_UI.py
Browse files- Gradio_UI.py +2 -2
Gradio_UI.py
CHANGED
|
@@ -104,7 +104,7 @@ Generated by AI Act Assistant.
|
|
| 104 |
detected_lang = "en"
|
| 105 |
|
| 106 |
flag = "🇬🇧" if detected_lang == "en" else "🇫🇷"
|
| 107 |
-
pdf_path = export_text_to_pdf(filled_template, language=detected_lang)
|
| 108 |
return f"{flag} Language detected: {detected_lang.upper()}
|
| 109 |
✅ All answers received. Download your AI Act compliance PDF below.", {"done": True, "pdf": pdf_path}
|
| 110 |
|
|
@@ -133,7 +133,7 @@ def launch_step_by_step_ui():
|
|
| 133 |
file_path = None
|
| 134 |
if isinstance(updated_state, dict) and updated_state.get("done"):
|
| 135 |
file_path = updated_state["pdf"]
|
| 136 |
-
restart_button.
|
| 137 |
|
| 138 |
return messages, updated_state, file_path
|
| 139 |
|
|
|
|
| 104 |
detected_lang = "en"
|
| 105 |
|
| 106 |
flag = "🇬🇧" if detected_lang == "en" else "🇫🇷"
|
| 107 |
+
pdf_path = export_text_to_pdf(filled_template, language=detected_lang)
|
| 108 |
return f"{flag} Language detected: {detected_lang.upper()}
|
| 109 |
✅ All answers received. Download your AI Act compliance PDF below.", {"done": True, "pdf": pdf_path}
|
| 110 |
|
|
|
|
| 133 |
file_path = None
|
| 134 |
if isinstance(updated_state, dict) and updated_state.get("done"):
|
| 135 |
file_path = updated_state["pdf"]
|
| 136 |
+
restart_button.visible = True
|
| 137 |
|
| 138 |
return messages, updated_state, file_path
|
| 139 |
|