Instructions to use mikav-ai/mikav with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mikav-ai/mikav with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mikav-ai/mikav", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download scripts/clean_text.py from mikav-ai/mikav: direct link, hf CLI and curl.
- Browser
- Download file 395 Bytes
-
https://huggingface.co/mikav-ai/mikav/resolve/main/scripts/clean_text.py
- Command line
-
hf download hf://mikav-ai/mikav/scripts/clean_text.py
-
curl -L -o clean_text.py https://huggingface.co/mikav-ai/mikav/resolve/main/scripts/clean_text.py
395 Bytes
| """Clean Malayalam text files.""" | |
| from pathlib import Path | |
| def clean_line(line: str) -> str: | |
| return " ".join(line.strip().split()) | |
| def main() -> None: | |
| input_dir = Path("data/raw") | |
| output_dir = Path("data/cleaned") | |
| output_dir.mkdir(parents=True, exist_ok=True) | |
| print(f"Add cleaning logic for files in {input_dir} -> {output_dir}") | |
| if __name__ == "__main__": | |
| main() | |