liujch1998 commited on
Commit
1b60906
Β·
1 Parent(s): 961ba82
Files changed (1) hide show
  1. app.py +3 -0
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