meg-huggingface
commited on
Commit
•
63a76d0
1
Parent(s):
864e7d1
lalalala
Browse files- Dockerfile +5 -1
- upload_results.py +1 -1
Dockerfile
CHANGED
@@ -41,9 +41,13 @@ WORKDIR /data
|
|
41 |
RUN chmod +x train.sh
|
42 |
RUN chmod +x upload_results.py
|
43 |
|
|
|
|
|
|
|
|
|
44 |
# Could also use CMD. Example:
|
45 |
# CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
46 |
-
ENTRYPOINT ["
|
47 |
|
48 |
|
49 |
|
|
|
41 |
RUN chmod +x train.sh
|
42 |
RUN chmod +x upload_results.py
|
43 |
|
44 |
+
# Expose the secret so it can be used later.
|
45 |
+
RUN --mount=type=secret,id=DATACOMP_TOKEN
|
46 |
+
#,mode=0444,required=true \
|
47 |
+
|
48 |
# Could also use CMD. Example:
|
49 |
# CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
50 |
+
ENTRYPOINT ["app:/train.sh"]
|
51 |
|
52 |
|
53 |
|
upload_results.py
CHANGED
@@ -15,7 +15,7 @@ parser.add_argument(
|
|
15 |
)
|
16 |
parser.add_argument(
|
17 |
"--model_out_dir",
|
18 |
-
default="teaching_arithmetic/out/
|
19 |
type=str,
|
20 |
required=False,
|
21 |
help="Path to the model output directory.",
|
|
|
15 |
)
|
16 |
parser.add_argument(
|
17 |
"--model_out_dir",
|
18 |
+
default="teaching_arithmetic/out/addition_plain/",
|
19 |
type=str,
|
20 |
required=False,
|
21 |
help="Path to the model output directory.",
|