jovian commited on
Commit
8739f3b
·
1 Parent(s): 8a24945
Files changed (1) hide show
  1. app.py +2 -21
app.py CHANGED
@@ -235,25 +235,6 @@ css = """
235
 
236
  @import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&family=Montserrat:wght@700&family=Open+Sans&family=Poppins:wght@300;400;500;600;700;800&display=swap');
237
 
238
- *{
239
- margin: 0;
240
- padding: 0;
241
- box-sizing: border-box;
242
- font-family: 'Ubuntu',sans-serif;
243
- }
244
-
245
- a{
246
- text-decoration: none;
247
- color: #000;
248
- }
249
-
250
-
251
- body{
252
- background-color: #fff;
253
- }
254
-
255
-
256
-
257
  header{
258
  padding: 0 80px;
259
  height: calc(100vh-80px);
@@ -360,7 +341,7 @@ def login_auth(username, password):
360
 
361
 
362
  # Gradio interface components
363
- with gr.Blocks() as demo:
364
 
365
  # State variable to track login status
366
  login_successful = gr.State(value=False)
@@ -450,7 +431,7 @@ with gr.Blocks() as demo:
450
  # Login row, initially visible
451
  with gr.Row(visible=True) as login_row:
452
  with gr.Column():
453
- gr.Markdown(value="<H2 style='text-align: center;'>NILI Login</h2>")
454
  with gr.Row():
455
  with gr.Column(scale=2):
456
  gr.Markdown("")
 
235
 
236
  @import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&family=Montserrat:wght@700&family=Open+Sans&family=Poppins:wght@300;400;500;600;700;800&display=swap');
237
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
238
  header{
239
  padding: 0 80px;
240
  height: calc(100vh-80px);
 
341
 
342
 
343
  # Gradio interface components
344
+ with gr.Blocks(css=css,js=js_func) as demo:
345
 
346
  # State variable to track login status
347
  login_successful = gr.State(value=False)
 
431
  # Login row, initially visible
432
  with gr.Row(visible=True) as login_row:
433
  with gr.Column():
434
+ gr.Markdown(value="<H2 style='text-align: center;'>Login Page</h2>")
435
  with gr.Row():
436
  with gr.Column(scale=2):
437
  gr.Markdown("")