Spaces:
Sleeping
Sleeping
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -137,8 +137,8 @@ def augment(sources, targets, factor=3):
|
|
| 137 |
return aug_s, aug_t
|
| 138 |
|
| 139 |
|
| 140 |
-
@spaces.GPU(duration=
|
| 141 |
-
def train_model(epochs=100, batch_size=
|
| 142 |
"""Train seq2seq on GPU."""
|
| 143 |
# Load data
|
| 144 |
with open("expression_pairs.json") as f:
|
|
|
|
| 137 |
return aug_s, aug_t
|
| 138 |
|
| 139 |
|
| 140 |
+
@spaces.GPU(duration=600)
|
| 141 |
+
def train_model(epochs=100, batch_size=256, augment_factor=2):
|
| 142 |
"""Train seq2seq on GPU."""
|
| 143 |
# Load data
|
| 144 |
with open("expression_pairs.json") as f:
|