Skip to content

Commit 8c63c9f

Browse files
committed
final fix for webinar
2 parents 488d486 + a2b122e commit 8c63c9f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def update_image(clickData, relayoutData, click_n, click_p, click_c, slider_val,
144144
elif 'autorange' in key:
145145
view.fig.update_xaxes(autorange=True)
146146
view.fig.update_yaxes(autorange='reversed')
147-
n_bpt = view.options.index(option)
147+
n_bpt = view.options.index(option) if option in view.options else 0
148148
if button_id != 'slider' and 'relayout' not in event:
149149
n_bpt += 1
150150
new_option = view.options[min(len(view.options) - 1, n_bpt)]

view.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def make_layout(self):
8383
dcc.Input(
8484
id="input_name",
8585
type='text',
86-
placeholder=str(uuid.uuid4()),
86+
placeholder="Please add username"
8787
),
8888
html.Button('Previous', id='previous'),
8989
html.Button('Next', id='next'),
@@ -121,7 +121,7 @@ def make_layout(self):
121121
)
122122

123123
def pick_keypoint_subset(self):
124-
self.subset = list(range(len(self.appconfig.options)))
124+
self.subset = [0, 1, 2, 8, 9]
125125
#random.sample(range(len(self.appconfig.options)), self.appconfig.n2show)
126126

127127
def refresh_radio_buttons(self):

0 commit comments

Comments
 (0)