Kevin Fink
commited on
Commit
·
d085a88
1
Parent(s):
ff67bb4
init
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ class LoggingCallback(TrainerCallback):
|
|
20 |
error_rate = 1 - state.best_metric # Assuming best_metric is accuracy
|
21 |
print(f"Current Error Rate: {error_rate:.4f}")
|
22 |
|
23 |
-
@spaces.GPU(duration=
|
24 |
def fine_tune_model(model_name, dataset_name, hub_id, api_key, num_epochs, batch_size, lr, grad):
|
25 |
try:
|
26 |
login(api_key.strip())
|
|
|
20 |
error_rate = 1 - state.best_metric # Assuming best_metric is accuracy
|
21 |
print(f"Current Error Rate: {error_rate:.4f}")
|
22 |
|
23 |
+
@spaces.GPU(duration=120)
|
24 |
def fine_tune_model(model_name, dataset_name, hub_id, api_key, num_epochs, batch_size, lr, grad):
|
25 |
try:
|
26 |
login(api_key.strip())
|