Plsek commited on
Commit
8516575
·
1 Parent(s): 5d6cf3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -152,7 +152,7 @@ if uploaded_file is not None:
152
  data = hdul[0].data
153
  wcs = WCS(hdul[0].header)
154
 
155
- # Make four columns for buttons
156
  _, col1, col2, col3, col4, col5, col6, _ = st.columns([bordersize,0.5,0.5,0.5,0.5,0.5,0.5,bordersize])
157
  col1.subheader("Input image")
158
  col3.subheader("Prediction")
@@ -182,7 +182,7 @@ if uploaded_file is not None:
182
  threshold = st.slider("", 0.0, 1.0, 0.0, 0.05, label_visibility="hidden")
183
 
184
  if detect:
185
- y_pred = predict(data, scale)
186
 
187
  # np.save("pred.npy", y_pred)
188
 
 
152
  data = hdul[0].data
153
  wcs = WCS(hdul[0].header)
154
 
155
+ # Make six columns for buttons
156
  _, col1, col2, col3, col4, col5, col6, _ = st.columns([bordersize,0.5,0.5,0.5,0.5,0.5,0.5,bordersize])
157
  col1.subheader("Input image")
158
  col3.subheader("Prediction")
 
182
  threshold = st.slider("", 0.0, 1.0, 0.0, 0.05, label_visibility="hidden")
183
 
184
  if detect:
185
+ y_pred = cut_n_predict(data, scale)
186
 
187
  # np.save("pred.npy", y_pred)
188