santiviquez commited on
Commit
0929195
1 Parent(s): 29457c0

allow mutation

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ FILENAME = "CNN_MelSpec_Deltas_fold_4_.pth"
49
  RATE = 22050
50
 
51
 
52
- @st.cache
53
  def download_model():
54
  model_weights = torch.load(
55
  cached_download(hf_hub_url(REPO_ID, FILENAME)), map_location=torch.device("cpu")
 
49
  RATE = 22050
50
 
51
 
52
+ @st.cache(allow_output_mutation=True)
53
  def download_model():
54
  model_weights = torch.load(
55
  cached_download(hf_hub_url(REPO_ID, FILENAME)), map_location=torch.device("cpu")