Aitron Emper
commited on
Commit
•
9f3f97f
1
Parent(s):
6a84e49
Update delete_models.py
Browse files- delete_models.py +12 -0
delete_models.py
CHANGED
@@ -24,6 +24,18 @@ def infinite_loop():
|
|
24 |
time.sleep(wait_time)
|
25 |
except:
|
26 |
pass
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
def start_infinite_loop():
|
29 |
hilo_bucle = threading.Thread(target=infinite_loop)
|
|
|
24 |
time.sleep(wait_time)
|
25 |
except:
|
26 |
pass
|
27 |
+
try:
|
28 |
+
audios_folder = os.path.join(now_dir, "audios")
|
29 |
+
|
30 |
+
for element in os.listdir(models_folder):
|
31 |
+
element_route = os.path.join(models_folder, element)
|
32 |
+
if os.path.isfile(element_route):
|
33 |
+
os.remove(element_route)
|
34 |
+
|
35 |
+
except:
|
36 |
+
pass
|
37 |
+
wait_time = 24 * 60 * 60 #
|
38 |
+
time.sleep(wait_time)
|
39 |
|
40 |
def start_infinite_loop():
|
41 |
hilo_bucle = threading.Thread(target=infinite_loop)
|