Update app.py
Browse files
app.py
CHANGED
|
@@ -141,7 +141,7 @@ def decompose_cavity(pred, th2=0.7, amin=6):
|
|
| 141 |
|
| 142 |
return image_decomposed
|
| 143 |
|
| 144 |
-
@st.
|
| 145 |
def load_file(fname):
|
| 146 |
with fits.open(fname) as hdul:
|
| 147 |
data = hdul[0].data
|
|
|
|
| 141 |
|
| 142 |
return image_decomposed
|
| 143 |
|
| 144 |
+
@st.cache
|
| 145 |
def load_file(fname):
|
| 146 |
with fits.open(fname) as hdul:
|
| 147 |
data = hdul[0].data
|