Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,10 @@ st.set_option('deprecation.showPyplotGlobalUse', False)
|
|
21 |
|
22 |
st.title("Cavity Detection Tool")
|
23 |
|
24 |
-
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
|
|
|
|
|
|
|
25 |
|
26 |
# Create file uploader widget
|
27 |
uploaded_file = st.file_uploader("Choose a FITS file", type=['fits'])
|
@@ -130,4 +133,4 @@ if uploaded_file is not None:
|
|
130 |
pass
|
131 |
# st.markdown("""<style>[data-baseweb="select"] {margin-top: 32px;}</style>""", unsafe_allow_html=True)
|
132 |
# # download = st.button('Download')
|
133 |
-
|
|
|
21 |
|
22 |
st.title("Cavity Detection Tool")
|
23 |
|
24 |
+
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 this tool for your research, please cite [Plšek et al. 2023](https://arxiv.org/abs/2304.05457)")
|
25 |
+
|
26 |
+
st.markdown("Input images should be centered at the centre of the galaxy and point sources should be filled with surrounding background [dmfilth](https://cxc.cfa.harvard.edu/ciao/ahelp/dmfilth.html).")
|
27 |
+
|
28 |
|
29 |
# Create file uploader widget
|
30 |
uploaded_file = st.file_uploader("Choose a FITS file", type=['fits'])
|
|
|
133 |
pass
|
134 |
# st.markdown("""<style>[data-baseweb="select"] {margin-top: 32px;}</style>""", unsafe_allow_html=True)
|
135 |
# # download = st.button('Download')
|
136 |
+
download = st.download_button(label="Download", data=res, file_name="predicted.fits", mime="application/octet-stream")
|