mrgalindo commited on
Commit
52b25c3
1 Parent(s): a54afc5

Update login.py

Browse files
Files changed (1) hide show
  1. login.py +3 -15
login.py CHANGED
@@ -11,18 +11,6 @@ def login(username, password):
11
  else:
12
  return False, "Invalid username or password."
13
 
14
- def create_login_interface():
15
- with gr.Blocks() as login_interface:
16
- gr.Markdown("# Login")
17
- username_input = gr.Textbox(label="Username")
18
- password_input = gr.Textbox(label="Password", type="password")
19
- login_button = gr.Button("Login")
20
- result = gr.Textbox(label="Result")
21
-
22
- login_button.click(
23
- login,
24
- inputs=[username_input, password_input],
25
- outputs=[result]
26
- )
27
-
28
- return login_interface
 
11
  else:
12
  return False, "Invalid username or password."
13
 
14
+ # protected_content.py
15
+ def protected_content():
16
+ return "Welcome to the protected content! This is only visible after successful login."