Andrew Kroening commited on
Commit
1f465a9
1 Parent(s): af58f62

Minor Cleanup

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -88,17 +88,20 @@ with gr.Blocks() as demo:
88
  """
89
  )
90
  with gr.Row():
91
- year = gr.Slider(1977, 2021, label="Season", interactive=True, step=1)
92
  player = gr.Dropdown(players, label="Player", interactive=True)
93
 
94
  with gr.Column(visible=False) as output_col:
95
  gr.Markdown(
96
  "**Below is the player forecast for the selected season plus 5 years. Next to the graph is a dropdown you can use to change the season and update the chart and see how a player's projection has changed over time.**"
97
  )
 
98
  with gr.Row():
99
- plt = gr.Plot()
100
  season = gr.Dropdown(seasons, label="Season", interactive=True, step=1)
101
 
 
 
 
102
  year.change(get_players, inputs=year, outputs=[player, output_col])
103
  player.change(
104
  get_forecast, inputs=[year, player], outputs=[plt, season, output_col]
 
88
  """
89
  )
90
  with gr.Row():
91
+ year = gr.Dropdown(1977, 2021, label="Season", interactive=True, step=1)
92
  player = gr.Dropdown(players, label="Player", interactive=True)
93
 
94
  with gr.Column(visible=False) as output_col:
95
  gr.Markdown(
96
  "**Below is the player forecast for the selected season plus 5 years. Next to the graph is a dropdown you can use to change the season and update the chart and see how a player's projection has changed over time.**"
97
  )
98
+
99
  with gr.Row():
 
100
  season = gr.Dropdown(seasons, label="Season", interactive=True, step=1)
101
 
102
+ with gr.Row():
103
+ plt = gr.Plot()
104
+
105
  year.change(get_players, inputs=year, outputs=[player, output_col])
106
  player.change(
107
  get_forecast, inputs=[year, player], outputs=[plt, season, output_col]