Spaces:
Runtime error
Runtime error
Download mathtext_fastapi/global_state_manager.py from TangibleAI/mathtext-fastapi: direct link, hf CLI and curl.
- Browser
- Download file 564 Bytes
-
https://huggingface.co/spaces/TangibleAI/mathtext-fastapi/resolve/ea3915f5d4ff2476df69fe2c2ea4be708f35430a/mathtext_fastapi/global_state_manager.py
- Command line
-
hf download hf://spaces/TangibleAI/mathtext-fastapi@ea3915f5d4ff2476df69fe2c2ea4be708f35430a/mathtext_fastapi/global_state_manager.py
-
curl -L -o global_state_manager.py https://huggingface.co/spaces/TangibleAI/mathtext-fastapi/resolve/ea3915f5d4ff2476df69fe2c2ea4be708f35430a/mathtext_fastapi/global_state_manager.py
564 Bytes
| from transitions import Machine | |
| from mathtext_fastapi.curriculum_mapper import build_curriculum_logic | |
| all_states, all_transitions = build_curriculum_logic() | |
| class GlobalStateManager(object): | |
| states = all_states | |
| transitions = all_transitions | |
| def __init__( | |
| self, | |
| initial_state='N1.1.1_G1', | |
| ): | |
| self.machine = Machine( | |
| model=self, | |
| states=GlobalStateManager.states, | |
| transitions=GlobalStateManager.transitions, | |
| initial=initial_state | |
| ) | |
| curriculum = GlobalStateManager() |