Skip to content

Commit

Permalink
Merge pull request #3300 from flairNLP/add_awaiting_response_logic
Browse files Browse the repository at this point in the history
add action to remove Awaiting Response label when an response was made
  • Loading branch information
alanakbik authored Sep 4, 2023
2 parents 1795ac8 + d288688 commit 16fbbbd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion flair/nn/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 16fbbbd

Please sign in to comment.