Spaces:
Runtime error
Runtime error
Gagan Bhatia
commited on
Commit
·
4af3c79
1
Parent(s):
7123542
Update train_model.py
Browse files
src/models/train_model.py
CHANGED
@@ -43,6 +43,7 @@ def train_model():
|
|
43 |
with open("reports/training_metrics.txt", "w") as fp:
|
44 |
json.dump(data, fp)
|
45 |
|
|
|
46 |
|
47 |
if __name__ == "__main__":
|
48 |
train_model()
|
|
|
43 |
with open("reports/training_metrics.txt", "w") as fp:
|
44 |
json.dump(data, fp)
|
45 |
|
46 |
+
if params["upload_to_hf"]:
|
47 |
|
48 |
if __name__ == "__main__":
|
49 |
train_model()
|