Spaces:
Sleeping
Sleeping
jovian
commited on
Commit
·
ec3473e
1
Parent(s):
497c37a
login
Browse files
app.py
CHANGED
|
@@ -446,11 +446,11 @@ with gr.Blocks(css = css,js=js_func) as demo:
|
|
| 446 |
outputs=frequency_graph_component)
|
| 447 |
|
| 448 |
|
| 449 |
-
|
| 450 |
-
|
| 451 |
with gr.Row(visible=True) as login_row:
|
| 452 |
with gr.Column():
|
| 453 |
-
gr.Markdown(value="<
|
| 454 |
with gr.Row():
|
| 455 |
with gr.Column(scale=2):
|
| 456 |
gr.Markdown("")
|
|
@@ -459,7 +459,7 @@ with gr.Blocks(css = css,js=js_func) as demo:
|
|
| 459 |
password_tbox = gr.Textbox(label="Password", interactive=True, type='password')
|
| 460 |
submit_btn = gr.Button(value='Submit', variant='primary', size='sm')
|
| 461 |
|
| 462 |
-
|
| 463 |
submit_btn.click(
|
| 464 |
login_auth,
|
| 465 |
inputs=[username_tbox, password_tbox],
|
|
@@ -481,11 +481,6 @@ with gr.Blocks(css = css,js=js_func) as demo:
|
|
| 481 |
with gr.Column(scale=2):
|
| 482 |
gr.Markdown("")
|
| 483 |
|
| 484 |
-
# Footer Row
|
| 485 |
-
with gr.Row():
|
| 486 |
-
with gr.Column(scale=4):
|
| 487 |
-
gr.HTML('<center><i>© 2024 OIS AI Defect Detection</center>')
|
| 488 |
-
|
| 489 |
|
| 490 |
|
| 491 |
# Launch the Gradio interface
|
|
|
|
| 446 |
outputs=frequency_graph_component)
|
| 447 |
|
| 448 |
|
| 449 |
+
|
| 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("")
|
|
|
|
| 459 |
password_tbox = gr.Textbox(label="Password", interactive=True, type='password')
|
| 460 |
submit_btn = gr.Button(value='Submit', variant='primary', size='sm')
|
| 461 |
|
| 462 |
+
# On clicking the submit button
|
| 463 |
submit_btn.click(
|
| 464 |
login_auth,
|
| 465 |
inputs=[username_tbox, password_tbox],
|
|
|
|
| 481 |
with gr.Column(scale=2):
|
| 482 |
gr.Markdown("")
|
| 483 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 484 |
|
| 485 |
|
| 486 |
# Launch the Gradio interface
|