Kevin Fink
commited on
Commit
·
debdc1c
1
Parent(s):
37ebaa4
dev
Browse files
app.py
CHANGED
@@ -146,7 +146,7 @@ def predict(text):
|
|
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
|
150 |
result = fine_tune_model(model, dataset_name, hub_id, api_key, num_epochs, batch_size, lr, grad)
|
151 |
return result
|
152 |
# Create Gradio interface
|
|
|
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)
|
150 |
result = fine_tune_model(model, dataset_name, hub_id, api_key, num_epochs, batch_size, lr, grad)
|
151 |
return result
|
152 |
# Create Gradio interface
|