Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
pminervini
commited on
Commit
•
699c361
1
Parent(s):
1739293
update
Browse files- backend-cli.py +6 -1
backend-cli.py
CHANGED
@@ -188,8 +188,13 @@ def process_pending_requests() -> bool:
|
|
188 |
|
189 |
|
190 |
if __name__ == "__main__":
|
|
|
|
|
191 |
import socket
|
192 |
-
if socket.gethostname()
|
|
|
|
|
|
|
193 |
import time
|
194 |
time.sleep(60 * random.randint(2, 5))
|
195 |
|
|
|
188 |
|
189 |
|
190 |
if __name__ == "__main__":
|
191 |
+
wait = True
|
192 |
+
|
193 |
import socket
|
194 |
+
if socket.gethostname() in {'hamburg'} or os.path.isdir("/home/pminervi"):
|
195 |
+
wait = False
|
196 |
+
|
197 |
+
if not wait:
|
198 |
import time
|
199 |
time.sleep(60 * random.randint(2, 5))
|
200 |
|