edaiofficial
commited on
Commit
•
d0cd77d
1
Parent(s):
89f4af4
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ language_map = {'English':'en','Swahili':'sw','Fon':'fon','Igbo':'ig',
|
|
10 |
available_languages = list(language_map.keys())
|
11 |
|
12 |
# Load parameters and model from checkpoint
|
13 |
-
checkpoint = hf_hub_download(repo_id="
|
14 |
device = 'gpu' if torch.cuda.is_available() else 'cpu'
|
15 |
params = load_params({'checkpoint':checkpoint,'device':device})
|
16 |
|
|
|
10 |
available_languages = list(language_map.keys())
|
11 |
|
12 |
# Load parameters and model from checkpoint
|
13 |
+
checkpoint = hf_hub_download(repo_id="edaiofficial/mmtafrica_base", filename="mmt_translation.pt")
|
14 |
device = 'gpu' if torch.cuda.is_available() else 'cpu'
|
15 |
params = load_params({'checkpoint':checkpoint,'device':device})
|
16 |
|