ciyidogan commited on
Commit
67f5f23
·
verified ·
1 Parent(s): b67fb94

Update intent.py

Browse files
Files changed (1) hide show
  1. intent.py +1 -3
intent.py CHANGED
@@ -4,13 +4,11 @@ from transformers import AutoTokenizer, AutoModelForSequenceClassification, Trai
4
  from log import log
5
  from pydantic import BaseModel
6
 
7
- global INTENT_DEFINITIONS
8
- global INTENT_MODEL, INTENT_TOKENIZER, LABEL2ID
9
-
10
  class TrainInput(BaseModel):
11
  intents: list
12
 
13
  def background_training(intents, s_config):
 
14
  try:
15
  log("🔧 Intent eğitimi başlatıldı...")
16
  texts, labels, label2id = [], [], {}
 
4
  from log import log
5
  from pydantic import BaseModel
6
 
 
 
 
7
  class TrainInput(BaseModel):
8
  intents: list
9
 
10
  def background_training(intents, s_config):
11
+ global INTENT_MODEL, INTENT_TOKENIZER, LABEL2ID
12
  try:
13
  log("🔧 Intent eğitimi başlatıldı...")
14
  texts, labels, label2id = [], [], {}