Spaces:
Sleeping
Sleeping
Download utils.py from andreavitor/fastsdcpu: direct link, hf CLI and curl.
- Browser
- Download file 303 Bytes
-
https://huggingface.co/spaces/andreavitor/fastsdcpu/resolve/e34a7f6b400bd0bc646c54c19aff159d3bbfd37f/utils.py
- Command line
-
hf download hf://spaces/andreavitor/fastsdcpu@e34a7f6b400bd0bc646c54c19aff159d3bbfd37f/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/andreavitor/fastsdcpu/resolve/e34a7f6b400bd0bc646c54c19aff159d3bbfd37f/utils.py
303 Bytes
| import platform | |
| def show_system_info(): | |
| try: | |
| print(f"Running on {platform.system()} platform") | |
| print(f"OS: {platform.platform()}") | |
| print(f"Processor: {platform.processor()}") | |
| except Exception as ex: | |
| print(f"Error ocurred while getting system information {ex}") | |