Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -118,10 +118,11 @@ import seaborn as sns
|
|
118 |
|
119 |
def server(input,output,session):
|
120 |
|
121 |
-
|
122 |
|
123 |
@output
|
124 |
-
@render.plot(alt="A histogram")
|
|
|
125 |
def plot():
|
126 |
print('we made it here2')
|
127 |
|
@@ -146,17 +147,17 @@ def server(input,output,session):
|
|
146 |
# y_flip = batter_dict_stat[y_stat]['flip_p']
|
147 |
# cbr_flip = batter_dict_stat[z_stat]['flip_p']
|
148 |
|
149 |
-
x_stat =
|
150 |
-
y_stat =
|
151 |
-
z_stat =
|
152 |
|
153 |
|
154 |
x_flip = batter_dict_stat[x_stat]['flip_p']
|
155 |
y_flip = batter_dict_stat[y_stat]['flip_p']
|
156 |
cbr_flip = batter_dict_stat[z_stat]['flip_p']
|
157 |
|
158 |
-
level_id = '
|
159 |
-
n_input =
|
160 |
n_age_input = 50
|
161 |
|
162 |
data_df = df_2024_update_summ.copy()
|
@@ -209,8 +210,8 @@ def server(input,output,session):
|
|
209 |
y_min = input.n_percent_bot_y()
|
210 |
y_max = input.n_percent_top_y()
|
211 |
|
212 |
-
z_min = input.n_percent_bot_z()
|
213 |
-
z_max = input.n_percent_top_z()
|
214 |
|
215 |
names = True
|
216 |
|
@@ -396,9 +397,9 @@ app = App(ui.page_fluid(
|
|
396 |
ui.row(
|
397 |
ui.column(6,ui.input_numeric("n_percent_top_y", "Greater Than Y", value=100)),
|
398 |
ui.column(6,ui.input_numeric("n_percent_bot_y", "Less Than Y", value=0))),
|
399 |
-
ui.row(
|
400 |
-
|
401 |
-
|
402 |
|
403 |
ui.input_select("player_id", "Label Player",batter_dict,width=1,size=1,multiple=True,selectize=True),
|
404 |
ui.row(
|
|
|
118 |
|
119 |
def server(input,output,session):
|
120 |
|
121 |
+
#
|
122 |
|
123 |
@output
|
124 |
+
@render.plot(alt="A histogram")
|
125 |
+
@reactive.event(input.go, ignore_none=False)
|
126 |
def plot():
|
127 |
print('we made it here2')
|
128 |
|
|
|
147 |
# y_flip = batter_dict_stat[y_stat]['flip_p']
|
148 |
# cbr_flip = batter_dict_stat[z_stat]['flip_p']
|
149 |
|
150 |
+
x_stat = input.stat_x()
|
151 |
+
y_stat = input.stat_y()
|
152 |
+
z_stat = input.stat_z()
|
153 |
|
154 |
|
155 |
x_flip = batter_dict_stat[x_stat]['flip_p']
|
156 |
y_flip = batter_dict_stat[y_stat]['flip_p']
|
157 |
cbr_flip = batter_dict_stat[z_stat]['flip_p']
|
158 |
|
159 |
+
level_id = 'MLB'
|
160 |
+
n_input = int(input.n())
|
161 |
n_age_input = 50
|
162 |
|
163 |
data_df = df_2024_update_summ.copy()
|
|
|
210 |
y_min = input.n_percent_bot_y()
|
211 |
y_max = input.n_percent_top_y()
|
212 |
|
213 |
+
# z_min = input.n_percent_bot_z()
|
214 |
+
# z_max = input.n_percent_top_z()
|
215 |
|
216 |
names = True
|
217 |
|
|
|
397 |
ui.row(
|
398 |
ui.column(6,ui.input_numeric("n_percent_top_y", "Greater Than Y", value=100)),
|
399 |
ui.column(6,ui.input_numeric("n_percent_bot_y", "Less Than Y", value=0))),
|
400 |
+
# ui.row(
|
401 |
+
# ui.column(6,ui.input_numeric("n_percent_top_z", "Greater Than Z", value=100)),
|
402 |
+
# ui.column(6,ui.input_numeric("n_percent_bot_z", "Less Than Z", value=0))),
|
403 |
|
404 |
ui.input_select("player_id", "Label Player",batter_dict,width=1,size=1,multiple=True,selectize=True),
|
405 |
ui.row(
|