Skip to content

Commit

Permalink
gen
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishekkrthakur committed Sep 25, 2024
1 parent 7f553dd commit 6a0cedc
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/autotrain/datagen/clients.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import json
import time
from dataclasses import dataclass
from typing import Optional

import outlines
import torch
import transformers
from huggingface_hub import InferenceClient

from autotrain import logger
import transformers
import torch
import outlines
import json


@dataclass
Expand Down
Empty file removed src/autotrain/datagen/generator.py
Empty file.
2 changes: 1 addition & 1 deletion src/autotrain/datagen/text.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import hashlib
import os
import random
import time

Expand All @@ -9,7 +10,6 @@
from autotrain.datagen.clients import Client
from autotrain.datagen.params import AutoTrainGenParams

import os

TEXT_CLASSIFICATION_SYSTEM_PROMPT = """
You are an AI bot that generates data for text classification tasks.
Expand Down
2 changes: 1 addition & 1 deletion src/autotrain/datagen/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import subprocess
from typing import Dict, List, Optional

from datasets import Dataset, DatasetDict, ClassLabel
from datasets import ClassLabel, Dataset, DatasetDict
from huggingface_hub import HfApi, metadata_update

from autotrain import logger
Expand Down
4 changes: 2 additions & 2 deletions src/autotrain/trainers/text_classification/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
from transformers.trainer_callback import PrinterCallback

from autotrain import logger
from autotrain.datagen.gen import AutoTrainGen
from autotrain.datagen.params import AutoTrainGenParams
from autotrain.trainers.common import (
ALLOW_REMOTE_CODE,
LossLoggingCallback,
Expand All @@ -28,8 +30,6 @@
from autotrain.trainers.text_classification import utils
from autotrain.trainers.text_classification.dataset import TextClassificationDataset
from autotrain.trainers.text_classification.params import TextClassificationParams
from autotrain.datagen.params import AutoTrainGenParams
from autotrain.datagen.gen import AutoTrainGen


def parse_args():
Expand Down

0 comments on commit 6a0cedc

Please sign in to comment.