Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,13 +6,9 @@ def login_auth(username, password):
|
|
| 6 |
|
| 7 |
if username == password:
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
#gr.Info("Login Failed")
|
| 14 |
-
print(f"Invalid user/password combination")
|
| 15 |
-
|
| 16 |
return {login_row: gr.Row(visible=True), app_row: gr.Row(visible=False)}
|
| 17 |
|
| 18 |
with gr.Blocks() as iface:
|
|
|
|
| 6 |
|
| 7 |
if username == password:
|
| 8 |
|
| 9 |
+
return {login_row: gr.Row(visible=False), app_row: gr.Row(visible=True)}
|
| 10 |
+
else:
|
| 11 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
return {login_row: gr.Row(visible=True), app_row: gr.Row(visible=False)}
|
| 13 |
|
| 14 |
with gr.Blocks() as iface:
|