Skip to content

Commit

Permalink
fix: import module level
Browse files Browse the repository at this point in the history
  • Loading branch information
tboquet committed Sep 19, 2023
1 parent 89aadf4 commit 4077d51
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/tasknet/utils.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
from datasets import DatasetDict, Dataset, load_dataset
from easydict import EasyDict as edict
import copy
import functools
from tqdm.auto import tqdm
from datasets import concatenate_datasets

import funcy as fc
import torch
import magicattr
import torch
from datasets import Dataset, DatasetDict, concatenate_datasets, load_dataset
from easydict import EasyDict as edict
from tqdm.auto import tqdm
from transformers import (
AutoModelForSequenceClassification,
AutoTokenizer,
TextClassificationPipeline,
)


class NoTqdm:
Expand Down Expand Up @@ -184,11 +189,6 @@ def load_pipeline(
if multilingual or "mdeberta" in model_name:
multilingual = True

from transformers import (
AutoModelForSequenceClassification,
TextClassificationPipeline,
AutoTokenizer,
)
from .models import Adapter

try:
Expand Down

0 comments on commit 4077d51

Please sign in to comment.