ugaray96 commited on
Commit
ea323d5
·
unverified ·
1 Parent(s): f8f6776

Streamlit cache resource for cache

Browse files

Signed-off-by: Unai Garay <[email protected]>

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ st.set_page_config(
13
  )
14
 
15
 
16
- @st.cache_resource()
17
  def load_model():
18
  with st.spinner("Loading model"):
19
  model = ViTForImageClassification("google/vit-base-patch16-224")
 
13
  )
14
 
15
 
16
+ @st.cache()
17
  def load_model():
18
  with st.spinner("Loading model"):
19
  model = ViTForImageClassification("google/vit-base-patch16-224")