Spaces:
Runtime error
Runtime error
journey continues
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ image = Image.open("./test0.jpeg")
|
|
28 |
labels = dataset.features['ner_tags'].feature.names
|
29 |
id2label = {v: k for v, k in enumerate(labels)}
|
30 |
|
31 |
-
label_ints = np.random.randint(0, len(ImageColor.colormap.items()),
|
32 |
label_color_pil = [k for k,_ in ImageColor.colormap.items()]
|
33 |
label_color = [label_color_pil[i] for i in label_ints]
|
34 |
label2color = {}
|
|
|
28 |
labels = dataset.features['ner_tags'].feature.names
|
29 |
id2label = {v: k for v, k in enumerate(labels)}
|
30 |
|
31 |
+
label_ints = np.random.randint(0, len(ImageColor.colormap.items()), 61)
|
32 |
label_color_pil = [k for k,_ in ImageColor.colormap.items()]
|
33 |
label_color = [label_color_pil[i] for i in label_ints]
|
34 |
label2color = {}
|