osanseviero commited on
Commit
28c6e5a
1 Parent(s): 88e4d8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -62,7 +62,7 @@ with gr.Blocks() as demo:
62
  for img, label in labeled_data:
63
  # Hack due to https://github.com/huggingface/datasets/issues/4796
64
  labeled_dataset = labeled_dataset.add_item({
65
- "image": feature.encode_example(Image.fromarray(img, mode='L')),
66
  "label": label
67
  })
68
  labeled_dataset.push_to_hub("active-learning/labeled_samples")
 
62
  for img, label in labeled_data:
63
  # Hack due to https://github.com/huggingface/datasets/issues/4796
64
  labeled_dataset = labeled_dataset.add_item({
65
+ "image": feature.encode_example(Image.fromarray(img)),
66
  "label": label
67
  })
68
  labeled_dataset.push_to_hub("active-learning/labeled_samples")