Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ st.set_option('deprecation.showPyplotGlobalUse', False)
|
|
| 19 |
|
| 20 |
st.title("Cavity Detection Tool")
|
| 21 |
|
| 22 |
-
st.markdown("Cavity Detection Tool (CADET) is a machine learning pipeline trained to detect X-ray cavities from noisy Chandra images of early-type galaxies.To use this tool upload your image, select the scale of interest and make a prediction! If you use output of this tool in your research please cite [Plšek et al. 2023](https://arxiv.org/abs/2304.05457)")
|
| 23 |
|
| 24 |
# Create file uploader widget
|
| 25 |
uploaded_file = st.file_uploader("Choose a FITS file", type=['fits'])
|
|
@@ -91,7 +91,7 @@ if uploaded_file is not None:
|
|
| 91 |
plot_image(np.log10(data+1), scale)
|
| 92 |
|
| 93 |
with col2:
|
| 94 |
-
detect = st.button('Detect cavities')
|
| 95 |
|
| 96 |
if detect:
|
| 97 |
data, wcs = cut(data, wcs, scale=scale)
|
|
|
|
| 19 |
|
| 20 |
st.title("Cavity Detection Tool")
|
| 21 |
|
| 22 |
+
st.markdown("Cavity Detection Tool (CADET) is a machine learning pipeline trained to detect X-ray cavities from noisy Chandra images of early-type galaxies. To use this tool upload your image, select the scale of interest and make a prediction! If you use the output of this tool in your research please cite [Plšek et al. 2023](https://arxiv.org/abs/2304.05457)")
|
| 23 |
|
| 24 |
# Create file uploader widget
|
| 25 |
uploaded_file = st.file_uploader("Choose a FITS file", type=['fits'])
|
|
|
|
| 91 |
plot_image(np.log10(data+1), scale)
|
| 92 |
|
| 93 |
with col2:
|
| 94 |
+
detect = st.button('Detect cavities')
|
| 95 |
|
| 96 |
if detect:
|
| 97 |
data, wcs = cut(data, wcs, scale=scale)
|