waloneai commited on
Commit
d671dbc
·
verified ·
1 Parent(s): adbd406

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -287,11 +287,12 @@ def check_password(password):
287
 
288
  # Gradio app with password protection
289
  with gr.Blocks() as demo:
290
- # Login interface (hidden by default)
291
  with gr.Row(visible=True) as login_interface:
292
- password_input = gr.Textbox(label="Enter Password", type="password")
293
- login_button = gr.Button("Login")
294
- login_status = gr.Textbox(label="Login Status", interactive=False)
 
295
 
296
  # Main app interface (hidden by default)
297
  with gr.Row(visible=False) as main_interface:
 
287
 
288
  # Gradio app with password protection
289
  with gr.Blocks() as demo:
290
+ # Login interface (visible by default)
291
  with gr.Row(visible=True) as login_interface:
292
+ with gr.Column():
293
+ password_input = gr.Textbox(label="Enter Password", type="password")
294
+ login_button = gr.Button("Login")
295
+ login_status = gr.Textbox(label="Login Status", interactive=False)
296
 
297
  # Main app interface (hidden by default)
298
  with gr.Row(visible=False) as main_interface: