Spaces:
Running
Running
based on https://docs.streamlit.io/develop/quick-reference/release-notes
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ IMAGE_TO_URL = {
|
|
| 22 |
}
|
| 23 |
|
| 24 |
|
| 25 |
-
@st.
|
| 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.
|
| 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,
|