Download app/models/DEEP_STEGO/Utils/progressbarCL_animation.py from savetrees/StegNet: direct link, hf CLI and curl.
- Browser
- Download file 225 Bytes
-
https://huggingface.co/spaces/savetrees/StegNet/resolve/main/app/models/DEEP_STEGO/Utils/progressbarCL_animation.py
- Command line
-
hf download hf://spaces/savetrees/StegNet/app/models/DEEP_STEGO/Utils/progressbarCL_animation.py
-
curl -L -o progressbarCL_animation.py https://huggingface.co/spaces/savetrees/StegNet/resolve/main/app/models/DEEP_STEGO/Utils/progressbarCL_animation.py
225 Bytes
| import math | |
| import sys | |
| def update_progress(current_frame, total_frames): | |
| progress = math.ceil((current_frame/total_frames)*100) | |
| sys.stdout.write('\rProgress: [{0}] {1}%'.format('>'*math.ceil(progress/10), progress)) |