osanseviero HF staff commited on
Commit
7b13977
1 Parent(s): d48a81f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -8,9 +8,10 @@ import re
8
  from magma import Magma
9
  from magma.image_input import ImageInput
10
 
11
- from huggingface_hub import hf_hub_download
12
- checkpoint_path = hf_hub_download(repo_id="osanseviero/magma", filename="model.pt")
13
 
 
 
14
 
15
  model = Magma.from_checkpoint(
16
  config_path = "configs/MAGMA_v1.yml",
 
8
  from magma import Magma
9
  from magma.image_input import ImageInput
10
 
11
+ from huggingface_hub import hf_hub_url, cached_download
 
12
 
13
+ checkpoint_url = hf_hub_url(repo_id="osanseviero/magma", filename="model.pt")
14
+ checkpoint_path = cached_download(config_file_url)
15
 
16
  model = Magma.from_checkpoint(
17
  config_path = "configs/MAGMA_v1.yml",