diff --git a/.github/workflows/push-important-models.yml b/.github/workflows/push-important-models.yml index 597aa41b064199..4ec5b01311e3ac 100644 --- a/.github/workflows/push-important-models.yml +++ b/.github/workflows/push-important-models.yml @@ -59,7 +59,7 @@ jobs: # container: # image: huggingface/transformers-all-latest-gpu # options: --gpus all --privileged --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/ - if: ${{ needs.get_modified_models.outputs.matrix != '[]' && needs.get_modified_models.outputs.matrix != '' && fromJson(needs.get_modified_models.outputs.matrix) != 'Array' }} + if: ${{ needs.get_modified_models.outputs.matrix != '[]' && needs.get_modified_models.outputs.matrix != '' && needs.get_modified_models.outputs.matrix != "" }} strategy: fail-fast: false matrix: diff --git a/src/transformers/models/bark/modeling_bark.py b/src/transformers/models/bark/modeling_bark.py index c004b23e0bfc36..de04614075cf80 100644 --- a/src/transformers/models/bark/modeling_bark.py +++ b/src/transformers/models/bark/modeling_bark.py @@ -16,7 +16,6 @@ import math from typing import Dict, Optional, Tuple, Union - import numpy as np import torch from torch import nn