Update app.py
Browse files
app.py
CHANGED
|
@@ -161,9 +161,6 @@ with col:
|
|
| 161 |
|
| 162 |
# If file is uploaded, read in the data and plot it
|
| 163 |
if uploaded_file is not None:
|
| 164 |
-
# fname = uploaded_file.strip(".fits")
|
| 165 |
-
uploaded_file
|
| 166 |
-
|
| 167 |
with fits.open(uploaded_file) as hdul:
|
| 168 |
data = hdul[0].data
|
| 169 |
wcs = WCS(hdul[0].header)
|
|
@@ -237,4 +234,5 @@ if uploaded_file is not None:
|
|
| 237 |
st.markdown("")
|
| 238 |
st.markdown("")
|
| 239 |
# st.markdown("""<style>[data-baseweb="select"] {margin-top: 16px;}</style>""", unsafe_allow_html=True)
|
|
|
|
| 240 |
download = st.download_button(label="Download", data=res, file_name=f'pred_{int(scale*128)}.zip', mime="application/octet-stream")
|
|
|
|
| 161 |
|
| 162 |
# If file is uploaded, read in the data and plot it
|
| 163 |
if uploaded_file is not None:
|
|
|
|
|
|
|
|
|
|
| 164 |
with fits.open(uploaded_file) as hdul:
|
| 165 |
data = hdul[0].data
|
| 166 |
wcs = WCS(hdul[0].header)
|
|
|
|
| 234 |
st.markdown("")
|
| 235 |
st.markdown("")
|
| 236 |
# st.markdown("""<style>[data-baseweb="select"] {margin-top: 16px;}</style>""", unsafe_allow_html=True)
|
| 237 |
+
fname = uploaded_file.name.strip(".fits")
|
| 238 |
download = st.download_button(label="Download", data=res, file_name=f'pred_{int(scale*128)}.zip', mime="application/octet-stream")
|