Raffael-Kultyshev commited on
Commit
786d956
·
1 Parent(s): 715c080

Fix update_plots function return

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -234,10 +234,9 @@ def build_interface():
234
 
235
  def update_plots(hand_choice):
236
  if hand_choice == "Left Hand":
237
- figs = [left_figs[metric] for metric in PLOT_ORDER]
238
  else:
239
- figs = [right_figs[metric] for metric in PLOT_ORDER]
240
- return figs
241
 
242
  hand_radio.change(fn=update_plots, inputs=hand_radio, outputs=plot_outputs)
243
 
 
234
 
235
  def update_plots(hand_choice):
236
  if hand_choice == "Left Hand":
237
+ return [left_figs[metric] for metric in PLOT_ORDER]
238
  else:
239
+ return [right_figs[metric] for metric in PLOT_ORDER]
 
240
 
241
  hand_radio.change(fn=update_plots, inputs=hand_radio, outputs=plot_outputs)
242