Spaces:
Build error
Build error
edaiofficial
commited on
Commit
•
d6133a5
1
Parent(s):
d0cd77d
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="chrisjay/mmtafrica", filename="mmt_translation.pt")
|
14 |
device = 'gpu' if torch.cuda.is_available() else 'cpu'
|
15 |
params = load_params({'checkpoint':checkpoint,'device':device})
|
16 |
|