Spaces:
Sleeping
Sleeping
Update Gradio_UI.py
Browse files- Gradio_UI.py +16 -13
Gradio_UI.py
CHANGED
|
@@ -91,19 +91,22 @@ def continue_conversation(user_input):
|
|
| 91 |
|
| 92 |
# === Gradio Interface ===
|
| 93 |
with gr.Blocks(title="Regulatory Compliance Generator") as demo:
|
| 94 |
-
#
|
| 95 |
-
gr.HTML("""
|
| 96 |
-
<style>
|
| 97 |
-
footer, .svelte-1ipelgc, .svelte-1tu2cey, .svelte-1n4b3i1 {
|
| 98 |
-
display: none !important;
|
| 99 |
-
}
|
| 100 |
-
</style>
|
| 101 |
-
""")
|
| 102 |
-
|
| 103 |
-
# GDPR disclaimer
|
| 104 |
gr.Markdown("""
|
| 105 |
-
###
|
| 106 |
-
This assistant does
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
""")
|
| 108 |
|
| 109 |
gr.Markdown("## 📑 Regulation Document Generator")
|
|
@@ -140,4 +143,4 @@ with gr.Blocks(title="Regulatory Compliance Generator") as demo:
|
|
| 140 |
user_input.submit(continue_conversation, inputs=user_input, outputs=[chatbox, pdf_output])
|
| 141 |
user_input.submit(lambda: "", None, user_input)
|
| 142 |
|
| 143 |
-
demo.launch()
|
|
|
|
| 91 |
|
| 92 |
# === Gradio Interface ===
|
| 93 |
with gr.Blocks(title="Regulatory Compliance Generator") as demo:
|
| 94 |
+
# GDPR Notice
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 95 |
gr.Markdown("""
|
| 96 |
+
### 🔒 GDPR Notice
|
| 97 |
+
This assistant does not store any personal data. All responses are processed temporarily to generate your document.
|
| 98 |
+
You are responsible for ensuring the accuracy and legality of the information submitted.
|
| 99 |
+
""", elem_id="gdpr-warning")
|
| 100 |
+
|
| 101 |
+
# Hide Gradio Footer + API Link
|
| 102 |
+
gr.HTML("""
|
| 103 |
+
<style>
|
| 104 |
+
footer, .svelte-1ipelgc[data-testid="block-settings-button"],
|
| 105 |
+
.prose a[href*="gradio.app"],
|
| 106 |
+
.prose a[href*="gradio.app"] + div {
|
| 107 |
+
display: none !important;
|
| 108 |
+
}
|
| 109 |
+
</style>
|
| 110 |
""")
|
| 111 |
|
| 112 |
gr.Markdown("## 📑 Regulation Document Generator")
|
|
|
|
| 143 |
user_input.submit(continue_conversation, inputs=user_input, outputs=[chatbox, pdf_output])
|
| 144 |
user_input.submit(lambda: "", None, user_input)
|
| 145 |
|
| 146 |
+
demo.launch(show_api=False)
|