Spaces:
Running
Running
Automatically add size categories to YAML
Browse files- tagging_app.py +2 -0
tagging_app.py
CHANGED
@@ -352,6 +352,8 @@ current_size_cats = state.get("size_categories") or ["unknown"]
|
|
352 |
ok, nonok = split_known(current_size_cats, known_size_categories)
|
353 |
if len(nonok) > 0:
|
354 |
leftcol.markdown(f"**Found bad codes in existing tagset**:\n{nonok}")
|
|
|
|
|
355 |
|
356 |
|
357 |
########################
|
|
|
352 |
ok, nonok = split_known(current_size_cats, known_size_categories)
|
353 |
if len(nonok) > 0:
|
354 |
leftcol.markdown(f"**Found bad codes in existing tagset**:\n{nonok}")
|
355 |
+
else:
|
356 |
+
state["size_categories"] = [initial_size_cats]
|
357 |
|
358 |
|
359 |
########################
|