164-S2-Assignment_2 / model_download_py.py
ajchri5's picture
Upload 3 files
0b2a06f verified
raw
history blame contribute delete
437 Bytes
# -*- coding: utf-8 -*-
"""model_download.py
Automatically generated by Colab.
Original file is located at
https://colab.research.google.com/drive/1Y_JvDuAVDbA_d7NCISXd_6nbyLn3yDZa
"""
import os
# Check if the model is already downloaded
if not os.path.exists('lid.176.bin'):
print("Downloading fastText language detection model...")
os.system('wget https://dl.fbaipublicfiles.com/fasttext/supervised-models/lid.176.bin')