From c133f9ae6dabb03d952c248d9f789f8bad78fb9c Mon Sep 17 00:00:00 2001 From: Benedikt Fuchs Date: Mon, 21 Aug 2023 10:49:57 +0200 Subject: [PATCH 1/2] add action to remove Awaiting Response label when an response was made --- .github/workflows/issues.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/issues.yml 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 From d288688587294fa9934a9ce090be096f6171e9cf Mon Sep 17 00:00:00 2001 From: Benedikt Fuchs Date: Mon, 21 Aug 2023 11:45:16 +0200 Subject: [PATCH 2/2] fix ruff --- flair/nn/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: