Upload task.py with huggingface_hub
Browse files
task.py
CHANGED
@@ -24,7 +24,7 @@ class FormTask(Tasker, StreamInstanceOperator):
|
|
24 |
outputs = {key: instance[key] for key in self.outputs}
|
25 |
except KeyError as e:
|
26 |
raise KeyError(
|
27 |
-
f"Unexpected output column names: {list(key for key in self.
|
28 |
f" \n available names:{list(instance.keys())}\n given output names:{self.outputs}"
|
29 |
)
|
30 |
|
|
|
24 |
outputs = {key: instance[key] for key in self.outputs}
|
25 |
except KeyError as e:
|
26 |
raise KeyError(
|
27 |
+
f"Unexpected output column names: {list(key for key in self.outputs if key not in instance)}"
|
28 |
f" \n available names:{list(instance.keys())}\n given output names:{self.outputs}"
|
29 |
)
|
30 |
|