Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -13,8 +13,8 @@ def get_r_HF():
|
|
| 13 |
|
| 14 |
def schedule_function(): # for dummy space so that this spcae and other space will call each other to avoid sleep time, again this project is for academic purpose.
|
| 15 |
while True:
|
| 16 |
-
|
| 17 |
-
wait_time = random.uniform(3, 5)
|
| 18 |
time.sleep(wait_time)
|
| 19 |
# call dummyscape
|
| 20 |
get_r_HF()
|
|
|
|
| 13 |
|
| 14 |
def schedule_function(): # for dummy space so that this spcae and other space will call each other to avoid sleep time, again this project is for academic purpose.
|
| 15 |
while True:
|
| 16 |
+
wait_time = random.uniform(3 * 60 * 60, 5 * 60 * 60) # Get a random wait time between 3 and 5 hours in seconds
|
| 17 |
+
# wait_time = random.uniform(3, 5)
|
| 18 |
time.sleep(wait_time)
|
| 19 |
# call dummyscape
|
| 20 |
get_r_HF()
|