Streamlit cache resource for cache
Browse filesSigned-off-by: Unai Garay <[email protected]>
app.py
CHANGED
@@ -13,7 +13,7 @@ st.set_page_config(
|
|
13 |
)
|
14 |
|
15 |
|
16 |
-
@st.
|
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")
|