Plsek commited on
Commit
af9ea07
·
1 Parent(s): bbbb7fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -30,6 +30,8 @@ st.set_page_config(page_title="Cavity Detection Tool", layout="wide")
30
  bordersize = 0.6
31
  _, col, _ = st.columns([bordersize, 3, bordersize])
32
 
 
 
33
  os.system("mkdir predictions")
34
 
35
  with col:
@@ -37,8 +39,8 @@ with col:
37
 
38
  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.")
39
  st.markdown("To use this tool: upload your image, select the scale of interest, and make a prediction!")
40
- st.markdown("If you use this tool for your research, please cite [Plšek et al. 2023](https://arxiv.org/abs/2304.05457)")
41
  st.markdown("Input images should be centred 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)).")
 
42
 
43
  # Create file uploader widget
44
  uploaded_file = st.file_uploader("Choose a FITS file", type=['fits'])
 
30
  bordersize = 0.6
31
  _, col, _ = st.columns([bordersize, 3, bordersize])
32
 
33
+ os.system("rm -r predictions")
34
+ os.system("rm predictions.zip Views")
35
  os.system("mkdir predictions")
36
 
37
  with col:
 
39
 
40
  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.")
41
  st.markdown("To use this tool: upload your image, select the scale of interest, and make a prediction!")
 
42
  st.markdown("Input images should be centred 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)).")
43
+ st.markdown("If you use this tool for your research, please cite [Plšek et al. 2023](https://arxiv.org/abs/2304.05457)")
44
 
45
  # Create file uploader widget
46
  uploaded_file = st.file_uploader("Choose a FITS file", type=['fits'])