rahul7star commited on
Commit
636cb5f
·
verified ·
1 Parent(s): 6eb9546

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -9
app.py CHANGED
@@ -159,19 +159,25 @@ css = """
159
  border-radius: 12px;
160
  }
161
 
162
- .footer {
 
 
 
 
 
 
 
163
  position: fixed;
164
  bottom: 0;
 
165
  width: 100%;
166
  text-align: center;
167
- padding: 10px;
168
  font-size: 12px;
169
- background: #0b1220;
170
- color: #cbd5f5;
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 class='footer'>© OhamLab Copyright</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()