bstraehle commited on
Commit
08c0eb5
1 Parent(s): 3d77c48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def fine_tune_model(base_model_id, dataset):
40
 
41
  # Preprocess the dataset
42
  def preprocess(examples):
43
- model_inputs = tokenizer(examples["text"], text_target=examples["sql"], max_length=512, truncation=True)
44
  return model_inputs
45
 
46
  dataset = dataset.map(preprocess, batched=True)
 
40
 
41
  # Preprocess the dataset
42
  def preprocess(examples):
43
+ model_inputs = tokenizer(examples["sql_prompt"], text_target=examples["sql"], max_length=512, truncation=True)
44
  return model_inputs
45
 
46
  dataset = dataset.map(preprocess, batched=True)