State management for continuous motion generation.
| 41 | |
| 42 | |
| 43 | class LoopState: |
| 44 | """State management for continuous motion generation.""" |
| 45 | |
| 46 | def __init__(self): |
| 47 | self.paused = False |
| 48 | self.text_prompt = "stand" |
| 49 | self.text_changed = True # Start with True to encode initial text |
| 50 | self.quit_requested = False |
| 51 | |
| 52 | |
| 53 | def get_text_embedding(text: str, clip_model, device: str) -> torch.Tensor: |