lrschuman17 commited on
Commit
2270641
·
verified ·
1 Parent(s): 2f4a514

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -6
app.py CHANGED
@@ -343,12 +343,20 @@ def main():
343
 
344
  with col1:
345
  st.subheader("Player Details")
346
- st.metric("Age", default_stats['age'])
347
- st.metric("Height (cm)", default_stats['player_height'])
348
- st.metric("Weight (kg)", default_stats['player_weight'])
349
- st.markdown(f"<div style='color: white;'>Age: {default_stats['age']}</div>", unsafe_allow_html=True)
350
- st.markdown(f"<div style='color: white;'>Height (cm): {default_stats['player_height']}</div>", unsafe_allow_html=True)
351
- st.markdown(f"<div style='color: white;'>Weight (kg): {default_stats['player_weight']}</div>", unsafe_allow_html=True)
 
 
 
 
 
 
 
 
352
 
353
  with col2:
354
  # Display team logo
 
343
 
344
  with col1:
345
  st.subheader("Player Details")
346
+ st.markdown(f"""
347
+ <div style="margin-bottom: 20px;">
348
+ <div style="font-size: 1em; color: white; margin-bottom: 5px;">Age</div>
349
+ <div style="font-size: 2em; color: white; font-weight: bold;">{default_stats['age']}</div>
350
+ </div>
351
+ <div style="margin-bottom: 20px;">
352
+ <div style="font-size: 1em; color: white; margin-bottom: 5px;">Height (cm)</div>
353
+ <div style="font-size: 2em; color: white; font-weight: bold;">{default_stats['player_height'].round(2)}</div>
354
+ </div>
355
+ <div style="margin-bottom: 20px;">
356
+ <div style="font-size: 1em; color: white; margin-bottom: 5px;">Weight (kg)</div>
357
+ <div style="font-size: 2em; color: white; font-weight: bold;">{default_stats['player_weight'].round(2)}</div>
358
+ </div>
359
+ """, unsafe_allow_html=True)
360
 
361
  with col2:
362
  # Display team logo