natexcvi commited on
Commit
c7a7eed
1 Parent(s): 502ded5

Use local cache dir

Browse files
Files changed (1) hide show
  1. model.py +1 -1
model.py CHANGED
@@ -25,7 +25,7 @@ class Model:
25
  }
26
  with keras.utils.custom_object_scope(custom_objects):
27
  weights = keras.models.load_model(
28
- hf_hub_download(model_repo_id, model_filename, token=hf_token)
29
  ).get_weights()
30
  self.trained_model.set_weights(weights)
31
 
 
25
  }
26
  with keras.utils.custom_object_scope(custom_objects):
27
  weights = keras.models.load_model(
28
+ hf_hub_download(model_repo_id, model_filename, token=hf_token, cache_dir=".cache")
29
  ).get_weights()
30
  self.trained_model.set_weights(weights)
31