Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ model = joblib.load('model_star.joblib')
|
|
22 |
unique_values = joblib.load('unique_values _star.joblib')
|
23 |
|
24 |
unique_CL = unique_values["Color"]
|
25 |
-
unique_SC = unique_values["
|
26 |
|
27 |
st.title("My star type")
|
28 |
st.image("https://study.com/academy/lesson/star-formation-main-sequence-dwarf-giant-stars.html")
|
@@ -31,9 +31,9 @@ def main():
|
|
31 |
st.text('For comparing all models of ML It can be used for prediction')
|
32 |
with st.form("questionaire"):
|
33 |
K = st.slider('Temperature',min_value=1900,max_value=40000)
|
34 |
-
L = st.slider('Relative Luminosity',min_value=
|
35 |
-
R = st.slider('Relative Radius',min_value=
|
36 |
-
AM = st.slider('Absolute Magnitude',min_value=
|
37 |
CL = st.selectbox("General Color of Spectrum",options=unique_CL)
|
38 |
SC = st.selectbox("Spectral_Class",options=unique_SC)
|
39 |
clicked = st.form_submit_button("Predict type")
|
|
|
22 |
unique_values = joblib.load('unique_values _star.joblib')
|
23 |
|
24 |
unique_CL = unique_values["Color"]
|
25 |
+
unique_SC = unique_values["Spectral_Class"]
|
26 |
|
27 |
st.title("My star type")
|
28 |
st.image("https://study.com/academy/lesson/star-formation-main-sequence-dwarf-giant-stars.html")
|
|
|
31 |
st.text('For comparing all models of ML It can be used for prediction')
|
32 |
with st.form("questionaire"):
|
33 |
K = st.slider('Temperature',min_value=1900,max_value=40000)
|
34 |
+
L = st.slider('Relative Luminosity',min_value=0,max_value=1000000)
|
35 |
+
R = st.slider('Relative Radius',min_value=0,max_value=2000)
|
36 |
+
AM = st.slider('Absolute Magnitude',min_value=0,max_value=25)
|
37 |
CL = st.selectbox("General Color of Spectrum",options=unique_CL)
|
38 |
SC = st.selectbox("Spectral_Class",options=unique_SC)
|
39 |
clicked = st.form_submit_button("Predict type")
|