| # Hugging Face CLI whoami | |
| import subprocess | |
| # This will show the output in the console as the command runs | |
| subprocess.run("huggingface-cli whoami", shell=True, check=True) | |
| result = subprocess.run("huggingface-cli whoami", shell=True, capture_output=True, text=True) | |
| print(result.stdout) | |