fcakyon commited on
Commit
59fa1c2
1 Parent(s): 07baa52

based on https://docs.streamlit.io/develop/quick-reference/release-notes

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,7 +22,7 @@ IMAGE_TO_URL = {
22
  }
23
 
24
 
25
- @st.cache_data(show_spinner=False)
26
  def download_comparison_images():
27
  sahi.utils.file.download_from_url(
28
  "https://user-images.githubusercontent.com/34196005/143309873-c0c1f31c-c42e-4a36-834e-da0a2336bb19.jpg",
@@ -34,7 +34,7 @@ def download_comparison_images():
34
  )
35
 
36
 
37
- @st.cache_data(show_spinner=False)
38
  def get_model():
39
  sahi.utils.file.download_from_url(
40
  MMDET_YOLOX_TINY_MODEL_URL,
 
22
  }
23
 
24
 
25
+ @st.cache_resource(show_spinner=False)
26
  def download_comparison_images():
27
  sahi.utils.file.download_from_url(
28
  "https://user-images.githubusercontent.com/34196005/143309873-c0c1f31c-c42e-4a36-834e-da0a2336bb19.jpg",
 
34
  )
35
 
36
 
37
+ @st.cache_resource(show_spinner=False)
38
  def get_model():
39
  sahi.utils.file.download_from_url(
40
  MMDET_YOLOX_TINY_MODEL_URL,