Spaces:
Running
Running
Commit
·
d415b47
1
Parent(s):
1519d5d
Upload app.py
Browse files
app.py
CHANGED
@@ -107,9 +107,9 @@ def build_demo_classes_and_metadata(vocab, label_list):
|
|
107 |
|
108 |
if vocab:
|
109 |
for words in vocab.split(";"):
|
110 |
-
extra_classes
|
111 |
extra_colors = [random_color(rgb=True, maximum=1) for _ in range(len(extra_classes))]
|
112 |
-
|
113 |
demo_thing_classes = extra_classes
|
114 |
demo_stuff_classes = []
|
115 |
demo_thing_colors = extra_colors
|
|
|
107 |
|
108 |
if vocab:
|
109 |
for words in vocab.split(";"):
|
110 |
+
extra_classes += [word.strip() for word in words.split(",")]
|
111 |
extra_colors = [random_color(rgb=True, maximum=1) for _ in range(len(extra_classes))]
|
112 |
+
print("extra_classes:", extra_classes)
|
113 |
demo_thing_classes = extra_classes
|
114 |
demo_stuff_classes = []
|
115 |
demo_thing_colors = extra_colors
|