Enhance user experience by clearing 'Waiting for approval' status immediately upon approval and refining markdown table styles for better readability and aesthetics.
4a5df81 Download agent/utils/boot_timing.py from Anurag43/ml-intern: direct link, hf CLI and curl.
- Browser
- Download file 521 Bytes
-
https://huggingface.co/spaces/Anurag43/ml-intern/resolve/main/agent/utils/boot_timing.py
- Command line
-
hf download hf://spaces/Anurag43/ml-intern/agent/utils/boot_timing.py
-
curl -L -o boot_timing.py https://huggingface.co/spaces/Anurag43/ml-intern/resolve/main/agent/utils/boot_timing.py
521 Bytes
| """Shared timing and color helpers for startup visual effects.""" | |
| import math | |
| def settle_curve(progress: float, sharpness: float = 3.0) -> float: | |
| """Return noise amount in range 1..0 for normalized progress 0..1.""" | |
| t = max(0.0, min(1.0, progress)) | |
| return math.exp(-sharpness * t) | |
| def warm_gold_from_white(progress: float) -> tuple[int, int, int]: | |
| """Interpolate from white to warm gold for progress 0..1.""" | |
| t = max(0.0, min(1.0, progress)) | |
| return 255, int(255 - 55 * t), int(255 - 175 * t) | |