app.py
Browse files- app_star.py +3 -3
app_star.py
CHANGED
@@ -24,9 +24,10 @@ unique_values = joblib.load('unique_values_star.joblib')
|
|
24 |
unique_CL = unique_values["Color"]
|
25 |
unique_SC = unique_values["Temperature"]
|
26 |
|
|
|
|
|
|
|
27 |
def main():
|
28 |
-
st.title("My star type")
|
29 |
-
st.image("https://study.com/academy/lesson/star-formation-main-sequence-dwarf-giant-stars.html")
|
30 |
st.text('For comparing all models of ML It can be used for prediction')
|
31 |
with st.form("questionaire"):
|
32 |
K = st.slider('Temperature',min_value=1900,max_value=40000)
|
@@ -35,7 +36,6 @@ def main():
|
|
35 |
AM = st.slider('Absolute Magnitude',min_value=1900,max_value=40000)
|
36 |
CL = st.selectbox("General Color of Spectrum",options=unique_CL)
|
37 |
SC = st.selectbox("Spectral_Class",options=unique_SC)
|
38 |
-
|
39 |
clicked = st.form_submit_button("Predict type")
|
40 |
if clicked:
|
41 |
result=model.predict(pd.DataFrame({"Temperature": [K],
|
|
|
24 |
unique_CL = unique_values["Color"]
|
25 |
unique_SC = unique_values["Temperature"]
|
26 |
|
27 |
+
st.title("My star type")
|
28 |
+
st.image("https://study.com/academy/lesson/star-formation-main-sequence-dwarf-giant-stars.html")
|
29 |
+
|
30 |
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)
|
|
|
36 |
AM = st.slider('Absolute Magnitude',min_value=1900,max_value=40000)
|
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")
|
40 |
if clicked:
|
41 |
result=model.predict(pd.DataFrame({"Temperature": [K],
|