Spaces:
Sleeping
Sleeping
Download helper_functions/checkpoint.py from UltimateRepAIr/RepAIr: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/spaces/UltimateRepAIr/RepAIr/resolve/main/helper_functions/checkpoint.py
- Command line
-
hf download hf://spaces/UltimateRepAIr/RepAIr/helper_functions/checkpoint.py
-
curl -L -o checkpoint.py https://huggingface.co/spaces/UltimateRepAIr/RepAIr/resolve/main/helper_functions/checkpoint.py
428 Bytes
| import os | |
| def checkpoint(path): | |
| """Prints a message indicating the successful execution of a script. | |
| It will give you the script name where this function is calles by default. | |
| Alternatively, you can set a string to display a custom message.""" | |
| script_name = os.path.basename(path) # Extract just the filename | |
| print("-" * 30) | |
| print(f"{script_name} successfully executed!") | |
| print("-" * 30) | |