Spaces:
Paused
Paused
Download app/utils/auth.py from bigAIking64/Gemimi: direct link, hf CLI and curl.
- Browser
- Download file 316 Bytes
-
https://huggingface.co/spaces/bigAIking64/Gemimi/resolve/main/app/utils/auth.py
- Command line
-
hf download hf://spaces/bigAIking64/Gemimi/app/utils/auth.py
-
curl -L -o auth.py https://huggingface.co/spaces/bigAIking64/Gemimi/resolve/main/app/utils/auth.py
316 Bytes
| import os | |
| import app.config.settings as settings | |
| def verify_password(input_password): | |
| """ | |
| 验证用户输入的密码是否正确 | |
| Args: | |
| input_password (str): 用户输入的密码 | |
| Returns: | |
| bool: 密码是否正确 | |
| """ | |
| return input_password == settings.PASSWORD |