Download utils/feedback.py from VadMyr86/Bootcamp: direct link, hf CLI and curl.
- Browser
- Download file 247 Bytes
-
https://huggingface.co/spaces/VadMyr86/Bootcamp/resolve/main/utils/feedback.py
- Command line
-
hf download hf://spaces/VadMyr86/Bootcamp/utils/feedback.py
-
curl -L -o feedback.py https://huggingface.co/spaces/VadMyr86/Bootcamp/resolve/main/utils/feedback.py
247 Bytes
| def get_feedback(score: int) -> tuple[str, str, str]: | |
| if score > 90: | |
| return "✅", "Excellent!", "#2ecc71" | |
| elif score > 70: | |
| return "⚠️", "Some mistakes", "#f39c12" | |
| else: | |
| return "❌", "Try again", "#e74c3c" | |