Skip to content
Snippets Groups Projects
Commit 5394055a authored by Paweł Walkowiak's avatar Paweł Walkowiak
Browse files

Add legacy mode

parent 6360a888
No related merge requests found
Pipeline #14701 passed with stages
in 11 minutes and 52 seconds
......@@ -52,6 +52,8 @@ class EasymatcherWorker(nlp_ws.NLPWorker):
raise UnsupportedOperation(
"'labels_path' should be passed with 'task_options'."
)
if isinstance(labels_path_list, str): # gui legacy mode
labels_path_list = [labels_path_list]
if (labels_name_list := task_options.pop("labels_name", None)) is None:
# Get labels filename
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment