Spaces:
Running
on
Zero
Running
on
Zero
czd358121692
commited on
Commit
•
78a01f3
1
Parent(s):
c9da39e
debug fix
Browse files
app.py
CHANGED
@@ -239,10 +239,10 @@ def check_disk_space(min_gb=10):
|
|
239 |
disk_usage = psutil.disk_usage('/')
|
240 |
gb_free = disk_usage.free / (1024 * 1024 * 1024)
|
241 |
if gb_free < min_gb:
|
242 |
-
print("Disk space GB free" + gb_free)
|
243 |
raise RuntimeError(f"Low disk space: {gb_free:.1f}GB free, need {min_gb}GB")
|
244 |
else:
|
245 |
-
print("Disk space GB free" + gb_free)
|
246 |
return True
|
247 |
|
248 |
def smart_cleanup():
|
|
|
239 |
disk_usage = psutil.disk_usage('/')
|
240 |
gb_free = disk_usage.free / (1024 * 1024 * 1024)
|
241 |
if gb_free < min_gb:
|
242 |
+
print("Disk space GB free" + str(gb_free))
|
243 |
raise RuntimeError(f"Low disk space: {gb_free:.1f}GB free, need {min_gb}GB")
|
244 |
else:
|
245 |
+
print("Disk space GB free" + str(gb_free))
|
246 |
return True
|
247 |
|
248 |
def smart_cleanup():
|