Pasham123 commited on
Commit
322b179
·
verified ·
1 Parent(s): 7ed9ec4

Update pages/Players_Comparision.py

Browse files
Files changed (1) hide show
  1. pages/Players_Comparision.py +3 -8
pages/Players_Comparision.py CHANGED
@@ -17,7 +17,7 @@ st.markdown(
17
  """
18
  <style>
19
  .stApp {
20
- background: linear-gradient(to right, #ADD8E6);
21
  color: #ffffff;
22
  padding: 20px;
23
  }
@@ -70,14 +70,14 @@ col1, col2 = st.columns(2)
70
 
71
  with col1:
72
  st.markdown('<div class="player-card">', unsafe_allow_html=True)
73
- player1_file = st.file_uploader("📷 Upload First Player Image", type=["jpg", "jpeg", "png"], key="player1")
74
  if player1_file:
75
  st.image(player1_file, caption="Player 1",use_container_width=True)
76
  st.markdown('</div>', unsafe_allow_html=True)
77
 
78
  with col2:
79
  st.markdown('<div class="player-card">', unsafe_allow_html=True)
80
- player2_file = st.file_uploader("📷 Upload Second Player Image", type=["jpg", "jpeg", "png"], key="player2")
81
  if player2_file:
82
  st.image(player2_file, caption="Player 2", use_container_width=True)
83
  st.markdown('</div>', unsafe_allow_html=True)
@@ -164,8 +164,3 @@ plot_combined_comparison("Maidens", "bowling_Maidens")
164
  plot_combined_line("Bowling Average", "bowling_Avg")
165
  plot_combined_line("Economy Rate", "bowling_Eco")
166
  plot_combined_line("Bowling Strike Rate", "bowling_SR")
167
-
168
-
169
-
170
-
171
-
 
17
  """
18
  <style>
19
  .stApp {
20
+ background: linear-gradient(to right, #f0f8ff);
21
  color: #ffffff;
22
  padding: 20px;
23
  }
 
70
 
71
  with col1:
72
  st.markdown('<div class="player-card">', unsafe_allow_html=True)
73
+ player1_file = st.file_uploader("📷 Upload Image of Player 1", type=["jpg", "jpeg", "png"], key="player1")
74
  if player1_file:
75
  st.image(player1_file, caption="Player 1",use_container_width=True)
76
  st.markdown('</div>', unsafe_allow_html=True)
77
 
78
  with col2:
79
  st.markdown('<div class="player-card">', unsafe_allow_html=True)
80
+ player2_file = st.file_uploader("📷 Upload Image of Player 2", type=["jpg", "jpeg", "png"], key="player2")
81
  if player2_file:
82
  st.image(player2_file, caption="Player 2", use_container_width=True)
83
  st.markdown('</div>', unsafe_allow_html=True)
 
164
  plot_combined_line("Bowling Average", "bowling_Avg")
165
  plot_combined_line("Economy Rate", "bowling_Eco")
166
  plot_combined_line("Bowling Strike Rate", "bowling_SR")