Plsek commited on
Commit
588ff75
·
1 Parent(s): 395328c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -11,7 +11,7 @@ st.set_option('deprecation.showPyplotGlobalUse', False)
11
 
12
  st.title("Cavity Detection Tool")
13
 
14
- st.text("Cavity Detection Tool (CADET) is a machine learning pipeline trained to detect\n X-ray cavities from noisy Chandra images of early-type galaxies.To use this tool upload\n your image, select the scale of interest and make a prediction! If you use output of this\n tool in your research please cite [Plšek et al. 2023](https://arxiv.org/abs/2304.05457)")
15
 
16
  model = load_model("CADET.hdf5")
17
 
@@ -20,6 +20,9 @@ uploaded_file = st.file_uploader("Choose a FITS file", type=['fits'])
20
 
21
  col1, col2 = st.columns(2)
22
 
 
 
 
23
  # Define function to plot the uploaded image
24
  def plot_image(image_array, scale):
25
  plt.figure(figsize=(4, 4))
 
11
 
12
  st.title("Cavity Detection Tool")
13
 
14
+ 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)")
15
 
16
  model = load_model("CADET.hdf5")
17
 
 
20
 
21
  col1, col2 = st.columns(2)
22
 
23
+ col1.subheader("Input image")
24
+ col.subheader("CADET prediction")
25
+
26
  # Define function to plot the uploaded image
27
  def plot_image(image_array, scale):
28
  plt.figure(figsize=(4, 4))