Download create_text.py from hieuducle/styletts2-ver2: direct link, hf CLI and curl.
- Browser
- Download file 549 Bytes
-
https://huggingface.co/hieuducle/styletts2-ver2/resolve/main/create_text.py
- Command line
-
hf download hf://hieuducle/styletts2-ver2/create_text.py
-
curl -L -o create_text.py https://huggingface.co/hieuducle/styletts2-ver2/resolve/main/create_text.py
549 Bytes
| # Ví dụ tạo OOD texts tiếng Việt | |
| sentences = [ | |
| "Công nghệ trí tuệ nhân tạo đang phát triển rất nhanh.", | |
| "Việt Nam là một đất nước xinh đẹp và giàu văn hóa.", | |
| "Học máy là một lĩnh vực thú vị của khoa học máy tính.", | |
| "Hôm nay tôi đã học được nhiều điều mới mẻ.", | |
| "Thời tiết mùa xuân ở Hà Nội rất dễ chịu.", | |
| ] | |
| with open('Configs/OOD_texts.txt', 'w', encoding='utf-8') as f: | |
| for s in sentences: | |
| f.write(f"{s}|\n") |