CoolFace
Apppublic

TangibleAI/mathtext-fastapi

sourceHugging Faceagpl-3.0updated 3y agoView on Hugging Face
1likes
utils.py13 linesDownload Raw Back to quiz
1from typing import Literal2 3def get_next_level(cur_level, levep_up: Literal[True, False] = True):4    if levep_up:5        if cur_level == "easy":6            return "medium"7        else:8            return "hard"9    else:10        if cur_level == "medium":11            return "easy"12        else:13            return "medium"