Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
@@ -146,8 +146,8 @@ def generate_random_img(model):
|
|
146 |
|
147 |
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.
|
148 |
while True:
|
149 |
-
|
150 |
-
wait_time = random.uniform(3, 5)
|
151 |
time.sleep(wait_time)
|
152 |
# call dummyscape
|
153 |
client = Client("https://huseyng-dummyspace.hf.space/")
|
|
|
146 |
|
147 |
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.
|
148 |
while True:
|
149 |
+
wait_time = random.uniform(3 * 60 * 60, 5 * 60 * 60) # Get a random wait time between 3 and 5 hours in seconds
|
150 |
+
# wait_time = random.uniform(3, 5)
|
151 |
time.sleep(wait_time)
|
152 |
# call dummyscape
|
153 |
client = Client("https://huseyng-dummyspace.hf.space/")
|