Kevin Fink commited on
Commit
37ebaa4
·
1 Parent(s): b058713
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -145,7 +145,7 @@ def predict(text):
145
 
146
  @spaces.GPU(duration=120)
147
  def run_train(dataset_name, hub_id, api_key, num_epochs, batch_size, lr, grad):
148
- config = AutoConfig.from_pretrained("google-t5/google/t5-efficient-tiny")
149
  model = AutoModelForSeq2SeqLM.from_config(config, num_labels=2)
150
  result = fine_tune_model(model, dataset_name, hub_id, api_key, num_epochs, batch_size, lr, grad)
151
  return result
 
145
 
146
  @spaces.GPU(duration=120)
147
  def run_train(dataset_name, hub_id, api_key, num_epochs, batch_size, lr, grad):
148
+ config = AutoConfig.from_pretrained("google/t5-efficient-tiny")
149
  model = AutoModelForSeq2SeqLM.from_config(config, num_labels=2)
150
  result = fine_tune_model(model, dataset_name, hub_id, api_key, num_epochs, batch_size, lr, grad)
151
  return result