danupurnomo commited on
Commit
5a3cff5
·
1 Parent(s): 8aa0c0b

Finalization background color

Browse files
Files changed (1) hide show
  1. app.py +1 -21
app.py CHANGED
@@ -71,26 +71,6 @@ st.markdown(
71
  unsafe_allow_html=True
72
  )
73
 
74
- # img_background_path = os.path.join(img_path, '01 - background.jpg')
75
- # # img_background_path = os.path.join(img_path, 'test-02.jpg')
76
- # encoded_string = convert_img_to_base64(img_background_path)
77
- # st.markdown(
78
- # f"""
79
- # <style>
80
- # .stApp {{
81
- # background-image: url(data:image/{"jpg"};base64,{encoded_string.decode()});
82
- # # background-size: cover;
83
- # background-size: 180%;
84
- # background-position: top left;
85
- # background-repeat: no-repeat;
86
- # background-attachment: local;
87
- # }}
88
-
89
- # </style>
90
- # """,
91
- # unsafe_allow_html=True
92
- # )
93
-
94
  # STEP 5 - SET TITLE AND OPENER
95
  ## STEP 5.1 - SET TITLE
96
  text_title = '<h1 style="font-family:sans-serif; color:#051d69; text-align:center;">FIFA 2022 Player\'s Rating Predictions</h1>'
@@ -261,7 +241,7 @@ if submitted :
261
  player_name = '<h1 style="font-family:helvetica; color:#fff9ac; text-align:center"> ' + col_name + ' </h1>'
262
  st.markdown(player_name, unsafe_allow_html=True)
263
 
264
- player_rating_pred = '<p style="font-family:helvetica; color:#fff9ac; font-size:100px; text-align:center"> <b>' + str(int(y_pred_inf)) + ' </p>'
265
  st.markdown(player_rating_pred, unsafe_allow_html=True)
266
 
267
  with col4:
 
71
  unsafe_allow_html=True
72
  )
73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  # STEP 5 - SET TITLE AND OPENER
75
  ## STEP 5.1 - SET TITLE
76
  text_title = '<h1 style="font-family:sans-serif; color:#051d69; text-align:center;">FIFA 2022 Player\'s Rating Predictions</h1>'
 
241
  player_name = '<h1 style="font-family:helvetica; color:#fff9ac; text-align:center"> ' + col_name + ' </h1>'
242
  st.markdown(player_name, unsafe_allow_html=True)
243
 
244
+ player_rating_pred = '<p style="font-family:helvetica; color:#494d55; font-size:100px; text-align:center"> <b>' + str(int(y_pred_inf)) + ' </p>'
245
  st.markdown(player_rating_pred, unsafe_allow_html=True)
246
 
247
  with col4: