diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml new file mode 100644 index 000000000..772773c25 --- /dev/null +++ b/.github/workflows/issues.yml @@ -0,0 +1,11 @@ +on: issue_comment + +jobs: + issue_commented: + name: Issue comment + if: ${{ !github.event.issue.pull_request && github.event.issue.author == github.even.issue_comment.author }} + runs-on: ubuntu-latest + steps: + - uses: actions-ecosystem/action-remove-labels@v1 + with: + labels: "Awaiting Response" \ No newline at end of file diff --git a/flair/nn/model.py b/flair/nn/model.py index 2fa90714c..2e77d67d3 100644 --- a/flair/nn/model.py +++ b/flair/nn/model.py @@ -660,7 +660,7 @@ def multi_label_threshold(self): @multi_label_threshold.setter def multi_label_threshold(self, x): # setter method - if type(x) is dict: + if isinstance(x, dict): if "default" in x: self._multi_label_threshold = x else: