Dave67350 commited on
Commit
8309c13
·
verified ·
1 Parent(s): 68b40ef

Update Gradio_UI.py

Browse files
Files changed (1) hide show
  1. Gradio_UI.py +10 -12
Gradio_UI.py CHANGED
@@ -91,6 +91,15 @@ def continue_conversation(user_input):
91
 
92
  # === Gradio Interface ===
93
  with gr.Blocks(title="Regulatory Compliance Generator") as demo:
 
 
 
 
 
 
 
 
 
94
  gr.Markdown("## 📑 Regulation Document Generator")
95
 
96
  with gr.Row():
@@ -125,15 +134,4 @@ with gr.Blocks(title="Regulatory Compliance Generator") as demo:
125
  user_input.submit(continue_conversation, inputs=user_input, outputs=[chatbox, pdf_output])
126
  user_input.submit(lambda: "", None, user_input)
127
 
128
- # === GDPR Disclaimer ===
129
- gr.Markdown(
130
- """
131
- ---
132
- 🛡️ **GDPR Notice**
133
- This assistant does **not store** your inputs or personal data.
134
- All responses are processed **in-memory only**, and discarded after you close the session.
135
- No data is shared externally or retained beyond your use.
136
- """
137
- )
138
-
139
- demo.launch(show_api=False)
 
91
 
92
  # === Gradio Interface ===
93
  with gr.Blocks(title="Regulatory Compliance Generator") as demo:
94
+ # Inject CSS to hide footer & built-with buttons
95
+ gr.HTML("""
96
+ <style>
97
+ footer, .svelte-1ipelgc, .svelte-1tu2cey, .svelte-1n4b3i1 {
98
+ display: none !important;
99
+ }
100
+ </style>
101
+ """)
102
+
103
  gr.Markdown("## 📑 Regulation Document Generator")
104
 
105
  with gr.Row():
 
134
  user_input.submit(continue_conversation, inputs=user_input, outputs=[chatbox, pdf_output])
135
  user_input.submit(lambda: "", None, user_input)
136
 
137
+ demo.launch()