Spaces:
Sleeping
Sleeping
jovian commited on
Commit ·
3cf877d
1
Parent(s): d6ffeb8
login
Browse files
app.py
CHANGED
|
@@ -450,10 +450,8 @@ with gr.Blocks(css = css,js=js_func) 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 class='login' style='text-align: center;'>
|
| 454 |
with gr.Row():
|
| 455 |
-
with gr.Column(scale=1):
|
| 456 |
-
gr.Markdown("")
|
| 457 |
with gr.Column(scale=1, variant='panel'):
|
| 458 |
username_tbox = gr.Textbox(label="User Name", interactive=True)
|
| 459 |
password_tbox = gr.Textbox(label="Password", interactive=True, type='password')
|
|
@@ -471,10 +469,11 @@ with gr.Blocks(css = css,js=js_func) as demo:
|
|
| 471 |
gr.update(visible=login_state), # Show area_graph_row
|
| 472 |
gr.update(visible=login_state), # Show area_btn_row
|
| 473 |
gr.update(visible=login_state), # Show frequency_graph_row
|
| 474 |
-
gr.update(visible=login_state) # Show frequency_btn_row
|
|
|
|
| 475 |
),
|
| 476 |
inputs=login_successful,
|
| 477 |
-
outputs=[header_row, input_row, area_graph_row, area_btn_row, frequency_graph_row, frequency_btn_row]
|
| 478 |
)
|
| 479 |
|
| 480 |
with gr.Column(scale=1):
|
|
|
|
| 450 |
# Login row, initially visible
|
| 451 |
with gr.Row(visible=True) as login_row:
|
| 452 |
with gr.Column():
|
| 453 |
+
gr.Markdown(value="<h2 class='login' style='text-align: center;'>OIS AI Defect Detection Login Page</h2>")
|
| 454 |
with gr.Row():
|
|
|
|
|
|
|
| 455 |
with gr.Column(scale=1, variant='panel'):
|
| 456 |
username_tbox = gr.Textbox(label="User Name", interactive=True)
|
| 457 |
password_tbox = gr.Textbox(label="Password", interactive=True, type='password')
|
|
|
|
| 469 |
gr.update(visible=login_state), # Show area_graph_row
|
| 470 |
gr.update(visible=login_state), # Show area_btn_row
|
| 471 |
gr.update(visible=login_state), # Show frequency_graph_row
|
| 472 |
+
gr.update(visible=login_state), # Show frequency_btn_row
|
| 473 |
+
gr.update(visible=not login_state) # for login
|
| 474 |
),
|
| 475 |
inputs=login_successful,
|
| 476 |
+
outputs=[header_row, input_row, area_graph_row, area_btn_row, frequency_graph_row, frequency_btn_row, login_row]
|
| 477 |
)
|
| 478 |
|
| 479 |
with gr.Column(scale=1):
|