blanar commited on
Commit
2608dfa
·
1 Parent(s): e79a359
Files changed (1) hide show
  1. app.py +12 -6
app.py CHANGED
@@ -1,8 +1,14 @@
1
  import streamlit as st
2
 
3
- st.markdown('<h1 style="color:black;">Pawpularity score prediction</h1>', unsafe_allow_html=True)
4
- st.markdown('<h2 style="color:gray;">This model predicts popularity of pet photo (cat or dog)</h2>', unsafe_allow_html=True)
5
- text='<h3 style="color:gray;"> Model based on competition [PetFinder.my - Pawpularity Contest](https://www.kaggle.com/competitions/petfinder-pawpularity-score/overview)</h3>'
6
- st.markdown(text, unsafe_allow_html=True)
7
- x = st.slider('Select a value')
8
- st.write(x, 'squared is', x * x)
 
 
 
 
 
 
 
1
  import streamlit as st
2
 
3
+
4
+ def app():
5
+ st.title("Pawpularity score prediction")
6
+ st.markdown('<h2 style="color:gray;">This model predicts popularity of pet photo (cat or dog)</h2>', unsafe_allow_html=True)
7
+ text='<h3 style="color:gray;"> Model based on competition [PetFinder.my - Pawpularity Contest](https://www.kaggle.com/competitions/petfinder-pawpularity-score/overview)</h3>'
8
+ st.markdown(text, unsafe_allow_html=True)
9
+ x = st.slider('Select a value')
10
+ st.write(x, 'squared is', x * x)
11
+
12
+
13
+ if __name__ == "__main__":
14
+ app()