taquynhnga commited on
Commit
3afc5cf
1 Parent(s): 4cce545

Update pages/4_ImageNet1k.py

Browse files
Files changed (1) hide show
  1. pages/4_ImageNet1k.py +1 -1
pages/4_ImageNet1k.py CHANGED
@@ -42,7 +42,7 @@ with col2:
42
  try:
43
  img_index = int(img_index)
44
  if img_index > 50000-1 or img_index < 0:
45
- error_container.error('The Image ID must be in range from 0 to 50000', icon="🚫")
46
  else:
47
  image = dataset_dict[img_index//10_000][img_index%10_000]['image']
48
  class_label = dataset_dict[img_index//10_000][img_index%10_000]['label']
 
42
  try:
43
  img_index = int(img_index)
44
  if img_index > 50000-1 or img_index < 0:
45
+ error_container.error('The Image ID must be in range from 0 to 49999', icon="🚫")
46
  else:
47
  image = dataset_dict[img_index//10_000][img_index%10_000]['image']
48
  class_label = dataset_dict[img_index//10_000][img_index%10_000]['label']