shenanigans
Browse files- utils/auth.py +4 -4
utils/auth.py
CHANGED
|
@@ -11,12 +11,12 @@ async def login(password: str):
|
|
| 11 |
yield gr.update(visible=False), gr.update(visible=True), ""
|
| 12 |
elif password == "hunter2":
|
| 13 |
# Temporarily show the app
|
| 14 |
-
yield gr.update(visible=False), gr.update(visible=
|
| 15 |
await asyncio.sleep(1)
|
| 16 |
-
yield gr.update(visible=
|
| 17 |
-
await asyncio.sleep(4)
|
| 18 |
-
yield gr.update(visible=True), gr.update(visible=False), "😈"
|
| 19 |
await asyncio.sleep(4)
|
| 20 |
yield gr.update(visible=True), gr.update(visible=False), ""
|
| 21 |
else:
|
| 22 |
yield gr.update(visible=True), gr.update(visible=False), "❌ Incorrect password. Please try again or contact Ben."
|
|
|
|
|
|
|
|
|
| 11 |
yield gr.update(visible=False), gr.update(visible=True), ""
|
| 12 |
elif password == "hunter2":
|
| 13 |
# Temporarily show the app
|
| 14 |
+
yield gr.update(visible=False), gr.update(visible=True), ""
|
| 15 |
await asyncio.sleep(1)
|
| 16 |
+
yield gr.update(visible=True), gr.update(visible=False), "Nice try ❤️"
|
|
|
|
|
|
|
| 17 |
await asyncio.sleep(4)
|
| 18 |
yield gr.update(visible=True), gr.update(visible=False), ""
|
| 19 |
else:
|
| 20 |
yield gr.update(visible=True), gr.update(visible=False), "❌ Incorrect password. Please try again or contact Ben."
|
| 21 |
+
await asyncio.sleep(4)
|
| 22 |
+
yield gr.update(visible=True), gr.update(visible=False), ""
|