File size: 551 Bytes
c027aed
 
921c235
 
 
 
 
 
c027aed
1
2
3
4
5
6
7
8
9
from huggingface_hub import  hf_hub_download

repo_name = "shiv-am-04/En-to-Fr-translator"

model_path = hf_hub_download(repo_id=repo_name,local_dir='/content/downloaded',filename="model.weights.h5")
tokenizer_path_english = hf_hub_download(repo_id=repo_name,local_dir='/content/downloaded',filename="en_tokenizer.json")
tokenizer_path_french = hf_hub_download(repo_id=repo_name,local_dir='/content/downloaded',filename="fr_tokenizer.json")

translation_file = hf_hub_download(repo_id=repo_name,local_dir='/content/downloaded',filename="translate.py")