ElPierrito commited on
Commit
7fa7805
·
verified ·
1 Parent(s): 3d7a722

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -89,9 +89,10 @@ with gr.Blocks() as app:
89
  # Login-Seite
90
  with gr.Column(visible=False) as login_page:
91
  gr.Markdown("## 🔐 Login")
92
- user = gr.Textbox(label="Benutzer")
93
- pw = gr.Textbox(label="Passwort", type="password")
94
- login_btn = gr.Button("Login")
 
95
  login_status = gr.Textbox(interactive=False, visible=False)
96
 
97
  # Kampagnenplaner-Seite
 
89
  # Login-Seite
90
  with gr.Column(visible=False) as login_page:
91
  gr.Markdown("## 🔐 Login")
92
+ user = gr.Textbox(label="Benutzer", on_submit=lambda: login(user.value,
93
+ pw.value))
94
+ pw = gr.Textbox(label="Passwort", type="password", on_submit_lambda:
95
+ login_btn = gr.Button("Login")
96
  login_status = gr.Textbox(interactive=False, visible=False)
97
 
98
  # Kampagnenplaner-Seite