We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c84e02f commit 01cf354Copy full SHA for 01cf354
2 files changed
Dockerfile
@@ -163,5 +163,10 @@ ADD train_dreambooth.py .
163
ADD send.py .
164
ADD app.py .
165
166
+ARG SEND_URL
167
+ENV SEND_URL=${SEND_URL}
168
+ARG SIGN_KEY
169
+ENV SIGN_KEY=${SIGN_KEY}
170
+
171
CMD python3 -u server.py
172
send.py
@@ -16,7 +16,13 @@ def get_now():
16
17
18
send_url = os.getenv("SEND_URL")
19
+if send_url == "":
20
+ send_url = None
21
22
sign_key = os.getenv("SIGN_KEY")
23
+if sign_key == "":
24
+ sign_key = None
25
26
init_time = get_now()
27
session = FuturesSession()
28
last_time = init_time
0 commit comments