Spaces:
Runtime error
Runtime error
Download scripts/quiz/utils.py from TangibleAI/mathtext-fastapi: direct link, hf CLI and curl.
- Browser
- Download file 326 Bytes
-
https://huggingface.co/spaces/TangibleAI/mathtext-fastapi/resolve/eecb00a2cf5be9db13180785669c0af374cb9a75/scripts/quiz/utils.py
- Command line
-
hf download hf://spaces/TangibleAI/mathtext-fastapi@eecb00a2cf5be9db13180785669c0af374cb9a75/scripts/quiz/utils.py
-
curl -L -o utils.py https://huggingface.co/spaces/TangibleAI/mathtext-fastapi/resolve/eecb00a2cf5be9db13180785669c0af374cb9a75/scripts/quiz/utils.py
326 Bytes
| from typing import Literal | |
| def get_next_level(cur_level, levep_up: Literal[True, False] = True): | |
| if levep_up: | |
| if cur_level == "easy": | |
| return "medium" | |
| else: | |
| return "hard" | |
| else: | |
| if cur_level == "medium": | |
| return "easy" | |
| else: | |
| return "medium" |