Update README.md
Browse files
README.md
CHANGED
@@ -1,15 +1,11 @@
|
|
1 |
-
|
|
|
|
|
|
|
2 |
repo_name = "shiv-am-04/En-to-Fr-translator"
|
3 |
|
4 |
-
#### Download model,tokenizer and python file for translation
|
5 |
model_path = hf_hub_download(repo_id=repo_name,local_dir='/content/downloaded',filename="model.weights.h5")
|
6 |
tokenizer_path_english = hf_hub_download(repo_id=repo_name,local_dir='/content/downloaded',filename="en_tokenizer.json")
|
7 |
tokenizer_path_french = hf_hub_download(repo_id=repo_name,local_dir='/content/downloaded',filename="fr_tokenizer.json")
|
8 |
|
9 |
-
translation_file = hf_hub_download(repo_id=repo_name,local_dir='/content/downloaded',filename="translate.py")
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
---
|
14 |
-
license: apache-2.0
|
15 |
-
---
|
|
|
1 |
+
#### Download model,tokenizer and python file for translation
|
2 |
+
|
3 |
+
from huggingface_hub import hf_hub_download
|
4 |
+
|
5 |
repo_name = "shiv-am-04/En-to-Fr-translator"
|
6 |
|
|
|
7 |
model_path = hf_hub_download(repo_id=repo_name,local_dir='/content/downloaded',filename="model.weights.h5")
|
8 |
tokenizer_path_english = hf_hub_download(repo_id=repo_name,local_dir='/content/downloaded',filename="en_tokenizer.json")
|
9 |
tokenizer_path_french = hf_hub_download(repo_id=repo_name,local_dir='/content/downloaded',filename="fr_tokenizer.json")
|
10 |
|
11 |
+
translation_file = hf_hub_download(repo_id=repo_name,local_dir='/content/downloaded',filename="translate.py")
|
|
|
|
|
|
|
|
|
|
|
|