Spaces:
Runtime error
Runtime error
Commit
Β·
1b60906
1
Parent(s):
961ba82
Debug
Browse files
app.py
CHANGED
|
@@ -6,6 +6,9 @@ import shutil
|
|
| 6 |
stat = shutil.disk_usage('/home/user/app')
|
| 7 |
print('Disk usage:')
|
| 8 |
print(stat)
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
|
| 11 |
|
|
|
|
| 6 |
stat = shutil.disk_usage('/home/user/app')
|
| 7 |
print('Disk usage:')
|
| 8 |
print(stat)
|
| 9 |
+
import os
|
| 10 |
+
# execute a shell command and print its output
|
| 11 |
+
print(os.popen('du -sh ~').read())
|
| 12 |
|
| 13 |
device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
|
| 14 |
|