File size: 406 Bytes
93615e4
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import streamlit as st
import pickle

st.title("Student Score Prediction Based On Study Hours")
hours=st.text_input('Enter study hours')
st.markdown(f"My input is : {hours}")
if st.button('Predict'):
  if (len(hours)):
   model=pickle.load(open('model.sav', 'rb'))
   prediction=model.predict([[int(hours)]])
   st.header(f'Predicted Score:{prediction[0]}')
  else:
   st.header('Please Enter Valid Data')