Plsek commited on
Commit
6b286d7
·
1 Parent(s): 6e063b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -130,6 +130,8 @@ def decompose_cavity(pred, th2=0.7, amin=10):
130
  ccd.write(f"predictions/predicted_{i+1}.fits", overwrite=True)
131
  image_decomposed += (i+1) * np.where(cav > 0, 1, 0)
132
 
 
 
133
  return image_decomposed
134
 
135
  # Use wide layout and create columns
 
130
  ccd.write(f"predictions/predicted_{i+1}.fits", overwrite=True)
131
  image_decomposed += (i+1) * np.where(cav > 0, 1, 0)
132
 
133
+ shutil.make_archive("predictions", 'zip', "predictions")
134
+
135
  return image_decomposed
136
 
137
  # Use wide layout and create columns