taquynhnga commited on
Commit
14d54e2
1 Parent(s): 932fc3c

Update pages/2_SmoothGrad.py

Browse files
Files changed (1) hide show
  1. pages/2_SmoothGrad.py +2 -2
pages/2_SmoothGrad.py CHANGED
@@ -104,8 +104,8 @@ grids = make_grid(cols=2+len(selected_models)*2, rows=len(image_ids)+1)
104
  # models[model_name], feature_extractors[model_name] = load_model(model_name)
105
 
106
 
107
- # @st.cache(allow_output_mutation=True)
108
- @st.cache_data
109
  def generate_images(image_id, model_name):
110
  j = image_ids.index(image_id)
111
  image = images[j]['image']
 
104
  # models[model_name], feature_extractors[model_name] = load_model(model_name)
105
 
106
 
107
+ @st.cache(allow_output_mutation=True)
108
+ # @st.cache_data
109
  def generate_images(image_id, model_name):
110
  j = image_ids.index(image_id)
111
  image = images[j]['image']