Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -159,19 +159,25 @@ css = """
|
|
| 159 |
border-radius: 12px;
|
| 160 |
}
|
| 161 |
|
| 162 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 163 |
position: fixed;
|
| 164 |
bottom: 0;
|
|
|
|
| 165 |
width: 100%;
|
| 166 |
text-align: center;
|
| 167 |
-
padding:
|
| 168 |
font-size: 12px;
|
| 169 |
-
background: #
|
| 170 |
-
color: #
|
| 171 |
-
|
| 172 |
-
|
| 173 |
-
footer, .gradio-footer {
|
| 174 |
-
display: none !important;
|
| 175 |
}
|
| 176 |
"""
|
| 177 |
|
|
@@ -208,7 +214,8 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
|
| 208 |
outputs=[login_box, app_content, gallery, page_state, login_status]
|
| 209 |
)
|
| 210 |
|
| 211 |
-
gr.HTML("<div
|
|
|
|
| 212 |
|
| 213 |
|
| 214 |
demo.launch()
|
|
|
|
| 159 |
border-radius: 12px;
|
| 160 |
}
|
| 161 |
|
| 162 |
+
/* ---- Hide Gradio default footer/settings ---- */
|
| 163 |
+
footer,
|
| 164 |
+
.gradio-footer {
|
| 165 |
+
display: none !important;
|
| 166 |
+
}
|
| 167 |
+
|
| 168 |
+
/* ---- Custom OhamLab footer ---- */
|
| 169 |
+
#ohamlab-footer {
|
| 170 |
position: fixed;
|
| 171 |
bottom: 0;
|
| 172 |
+
left: 0;
|
| 173 |
width: 100%;
|
| 174 |
text-align: center;
|
| 175 |
+
padding: 8px 0;
|
| 176 |
font-size: 12px;
|
| 177 |
+
background: #f8f9fb;
|
| 178 |
+
color: #555;
|
| 179 |
+
z-index: 9999;
|
| 180 |
+
border-top: 1px solid #e5e7eb;
|
|
|
|
|
|
|
| 181 |
}
|
| 182 |
"""
|
| 183 |
|
|
|
|
| 214 |
outputs=[login_box, app_content, gallery, page_state, login_status]
|
| 215 |
)
|
| 216 |
|
| 217 |
+
gr.HTML("<div id='ohamlab-footer'>© OhamLab Copyright</div>")
|
| 218 |
+
|
| 219 |
|
| 220 |
|
| 221 |
demo.launch()
|