Spaces:
Sleeping
Sleeping
Commit
·
72c3fa0
1
Parent(s):
6cac78c
Update app.py
Browse files
app.py
CHANGED
|
@@ -126,18 +126,17 @@ button:hover, .gradio-button:hover {
|
|
| 126 |
|
| 127 |
with gr.Blocks(css=css) as demo:
|
| 128 |
# Custom header with branding
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
<
|
| 132 |
-
<
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
""")
|
| 141 |
|
| 142 |
with gr.Row():
|
| 143 |
# Left sidebar: Model selector
|
|
@@ -195,12 +194,11 @@ with gr.Blocks(css=css) as demo:
|
|
| 195 |
clear_button = gr.Button("Clear Chat")
|
| 196 |
|
| 197 |
# Footer with branding
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
<
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
""")
|
| 204 |
|
| 205 |
# Fix 1: Correct event handling for the chatbot interface
|
| 206 |
def user(user_message, history):
|
|
|
|
| 126 |
|
| 127 |
with gr.Blocks(css=css) as demo:
|
| 128 |
# Custom header with branding
|
| 129 |
+
gr.HTML("""
|
| 130 |
+
<div class="app-header">
|
| 131 |
+
<h1 class="app-title">
|
| 132 |
+
<span class="shield">🔒</span>
|
| 133 |
+
<span class="safe">Safe</span>
|
| 134 |
+
<span class="lm">Playground</span>
|
| 135 |
+
</h1>
|
| 136 |
+
<p class="app-subtitle">Responsible AI for everyone</p>
|
| 137 |
+
</div>
|
| 138 |
+
<hr class="golden-accent">
|
| 139 |
+
""")
|
|
|
|
| 140 |
|
| 141 |
with gr.Row():
|
| 142 |
# Left sidebar: Model selector
|
|
|
|
| 194 |
clear_button = gr.Button("Clear Chat")
|
| 195 |
|
| 196 |
# Footer with branding
|
| 197 |
+
gr.HTML("""
|
| 198 |
+
<div class="footer">
|
| 199 |
+
<p>Safe Playground™ | Responsible AI Technology | © 2025</p>
|
| 200 |
+
</div>
|
| 201 |
+
""")
|
|
|
|
| 202 |
|
| 203 |
# Fix 1: Correct event handling for the chatbot interface
|
| 204 |
def user(user_message, history):
|