Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,8 @@ with col1:
|
|
107 |
hitter_rhp, hitter_lhp, pitcher_rhh, pitcher_lhh = init_baselines()
|
108 |
|
109 |
pitcher_var1 = st.selectbox("Which pitcher are you looking at?", options = pitcher_rhh['Names'].unique())
|
110 |
-
|
|
|
111 |
pitcher_hand = pitcher_check['Hand'][0]
|
112 |
if pitcher_hand == 'RHP':
|
113 |
hitter_var1 = st.selectbox("What hitter are you looking at?", options = hitter_rhp['Player'].unique())
|
|
|
107 |
hitter_rhp, hitter_lhp, pitcher_rhh, pitcher_lhh = init_baselines()
|
108 |
|
109 |
pitcher_var1 = st.selectbox("Which pitcher are you looking at?", options = pitcher_rhh['Names'].unique())
|
110 |
+
working_pitcher = pitcher_rhh.copy()
|
111 |
+
pitcher_check = working_pitcher[working_pitcher['Names'] == pitcher_var1]
|
112 |
pitcher_hand = pitcher_check['Hand'][0]
|
113 |
if pitcher_hand == 'RHP':
|
114 |
hitter_var1 = st.selectbox("What hitter are you looking at?", options = hitter_rhp['Player'].unique())
|