Update app.py
Browse files
app.py
CHANGED
|
@@ -10,9 +10,9 @@ from astropy.nddata import Cutout2D, CCDData
|
|
| 10 |
from astropy.convolution import Gaussian2DKernel as Gauss
|
| 11 |
from astropy.convolution import convolve
|
| 12 |
|
| 13 |
-
#
|
| 14 |
-
|
| 15 |
-
|
| 16 |
|
| 17 |
# Streamlit
|
| 18 |
import streamlit as st
|
|
@@ -115,7 +115,7 @@ if uploaded_file is not None:
|
|
| 115 |
col3.subheader("Prediction")
|
| 116 |
|
| 117 |
with col1:
|
| 118 |
-
st.markdown("""<style>[data-baseweb="select"] {margin-top: -
|
| 119 |
max_scale = int(data.shape[0] // 128)
|
| 120 |
# scale = int(st.selectbox('Scale:',[i+1 for i in range(max_scale)], label_visibility="hidden"))
|
| 121 |
scale = st.selectbox('Scale:',[f"{(i+1)*128}x{(i+1)*128}" for i in range(max_scale)], label_visibility="hidden")
|
|
|
|
| 10 |
from astropy.convolution import Gaussian2DKernel as Gauss
|
| 11 |
from astropy.convolution import convolve
|
| 12 |
|
| 13 |
+
# HuggingFace
|
| 14 |
+
from huggingface_hub import from_pretrained_keras
|
| 15 |
+
model = from_pretrained_keras("Plsek/CADET-v1")
|
| 16 |
|
| 17 |
# Streamlit
|
| 18 |
import streamlit as st
|
|
|
|
| 115 |
col3.subheader("Prediction")
|
| 116 |
|
| 117 |
with col1:
|
| 118 |
+
st.markdown("""<style>[data-baseweb="select"] {margin-top: -56px;}</style>""", unsafe_allow_html=True)
|
| 119 |
max_scale = int(data.shape[0] // 128)
|
| 120 |
# scale = int(st.selectbox('Scale:',[i+1 for i in range(max_scale)], label_visibility="hidden"))
|
| 121 |
scale = st.selectbox('Scale:',[f"{(i+1)*128}x{(i+1)*128}" for i in range(max_scale)], label_visibility="hidden")
|