UI-VieNeu / test_regex.py
HuuDatLego's picture
Upload folder using huggingface_hub
911c66e verified
import re
text = " 🔊 Chunk 63/63: 98%|###########################################3| 62/63 [05:00<00:03, 3.21s/it]"
match = re.search(r'\[(\d+:\d+)<(\d+:\d+)', text)
if match:
print(f"Elapsed: {match.group(1)}")
print(f"Remaining: {match.group(2)}")