tsykf8 / app.py
ulduldp's picture
Update app.py
61f9d85 verified
raw
history blame contribute delete
290 Bytes
# 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)