Commit
·
786d956
1
Parent(s):
715c080
Fix update_plots function return
Browse files
app.py
CHANGED
|
@@ -234,10 +234,9 @@ def build_interface():
|
|
| 234 |
|
| 235 |
def update_plots(hand_choice):
|
| 236 |
if hand_choice == "Left Hand":
|
| 237 |
-
|
| 238 |
else:
|
| 239 |
-
|
| 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 |
|