Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def get_dataloader(start, end, batch_size=8):
|
|
34 |
subset = torch.utils.data.Subset(global_data, range(start, end))
|
35 |
return DataLoader(subset, batch_size=batch_size)
|
36 |
|
37 |
-
@spaces.GPU(duration=
|
38 |
def train_batch(dataloader):
|
39 |
model.train()
|
40 |
start_time = time.time()
|
|
|
34 |
subset = torch.utils.data.Subset(global_data, range(start, end))
|
35 |
return DataLoader(subset, batch_size=batch_size)
|
36 |
|
37 |
+
@spaces.GPU(duration=60)
|
38 |
def train_batch(dataloader):
|
39 |
model.train()
|
40 |
start_time = time.time()
|