Spaces:
Runtime error
Runtime error
feat: add train model function to be called from app.py
Browse files
psy.py
CHANGED
@@ -50,7 +50,10 @@ trainer = Trainer(
|
|
50 |
compute_metrics=compute_metrics,
|
51 |
)
|
52 |
|
|
|
|
|
|
|
53 |
# Finally, fine-tune!
|
54 |
if __name__ == "__main__":
|
55 |
-
|
56 |
|
|
|
50 |
compute_metrics=compute_metrics,
|
51 |
)
|
52 |
|
53 |
+
|
54 |
+
def train_model()
|
55 |
+
trainer.train()
|
56 |
# Finally, fine-tune!
|
57 |
if __name__ == "__main__":
|
58 |
+
train_model()
|
59 |
|