Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -223,12 +223,7 @@ def log_message(output_log, msg):
|
|
| 223 |
# =====================================================
|
| 224 |
@spaces.GPU(duration=300)
|
| 225 |
def train_model(
|
| 226 |
-
|
| 227 |
-
dataset_name: str,
|
| 228 |
-
hf_repo: str,
|
| 229 |
-
num_epochs: int = 1,
|
| 230 |
-
batch_size: int = 2,
|
| 231 |
-
learning_rate: float = 5e-4,
|
| 232 |
):
|
| 233 |
output_log = []
|
| 234 |
|
|
|
|
| 223 |
# =====================================================
|
| 224 |
@spaces.GPU(duration=300)
|
| 225 |
def train_model(
|
| 226 |
+
base_model, dataset_name, num_epochs, batch_size, learning_rate, hf_repo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 227 |
):
|
| 228 |
output_log = []
|
| 229 |
|