Update app.py
Browse files
app.py
CHANGED
|
@@ -31,22 +31,13 @@ colour_palette = ['#FFB000','#648FFF','#785EF0',
|
|
| 31 |
'#DC267F','#FE6100','#3D1EB2','#894D80','#16AA02','#B5592B','#A3C1ED']
|
| 32 |
cmap_sum = mcolors.LinearSegmentedColormap.from_list("", ['#648FFF', '#FFFFFF', '#FFB000'])
|
| 33 |
|
| 34 |
-
year_list = [
|
| 35 |
|
| 36 |
|
| 37 |
-
type_dict = {
|
| 38 |
-
'S':'Spring'
|
| 39 |
-
'P':'Playoffs' }
|
| 40 |
|
| 41 |
-
level_dict = {'1':'MLB'
|
| 42 |
-
'11':'AAA',
|
| 43 |
-
'12':'AA',
|
| 44 |
-
'13':'A+',
|
| 45 |
-
'14':'A',
|
| 46 |
-
'17':'AFL',
|
| 47 |
-
'22':'College',
|
| 48 |
-
'21':'Prospects',
|
| 49 |
-
'51':'International' }
|
| 50 |
|
| 51 |
function_dict={
|
| 52 |
'velocity_kdes':'Velocity Distributions',
|
|
@@ -120,9 +111,9 @@ app_ui = ui.page_fluid(
|
|
| 120 |
ui.panel_sidebar(
|
| 121 |
# Row for selecting season and level
|
| 122 |
ui.row(
|
| 123 |
-
ui.column(4, ui.input_select('year_input', 'Select Season', year_list, selected=
|
| 124 |
ui.column(4, ui.input_select('level_input', 'Select Level', level_dict)),
|
| 125 |
-
ui.column(4, ui.input_select('type_input', 'Select Type', type_dict,selected='
|
| 126 |
),
|
| 127 |
# Row for the action button to get player list
|
| 128 |
ui.row(ui.input_action_button("player_button", "Get Player List", class_="btn-primary")),
|
|
|
|
| 31 |
'#DC267F','#FE6100','#3D1EB2','#894D80','#16AA02','#B5592B','#A3C1ED']
|
| 32 |
cmap_sum = mcolors.LinearSegmentedColormap.from_list("", ['#648FFF', '#FFFFFF', '#FFB000'])
|
| 33 |
|
| 34 |
+
year_list = [2025]
|
| 35 |
|
| 36 |
|
| 37 |
+
type_dict = {
|
| 38 |
+
'S':'Spring'}
|
|
|
|
| 39 |
|
| 40 |
+
level_dict = {'1':'MLB' }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
|
| 42 |
function_dict={
|
| 43 |
'velocity_kdes':'Velocity Distributions',
|
|
|
|
| 111 |
ui.panel_sidebar(
|
| 112 |
# Row for selecting season and level
|
| 113 |
ui.row(
|
| 114 |
+
ui.column(4, ui.input_select('year_input', 'Select Season', year_list, selected=2025)),
|
| 115 |
ui.column(4, ui.input_select('level_input', 'Select Level', level_dict)),
|
| 116 |
+
ui.column(4, ui.input_select('type_input', 'Select Type', type_dict,selected='S'))
|
| 117 |
),
|
| 118 |
# Row for the action button to get player list
|
| 119 |
ui.row(ui.input_action_button("player_button", "Get Player List", class_="btn-primary")),
|