liujch1998 commited on
Commit
295e94f
β€’
1 Parent(s): 90d2ad7

Print disk usage

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -2,6 +2,10 @@ import gradio as gr
2
  import os
3
  import torch
4
  import transformers
 
 
 
 
5
 
6
  device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
7
 
 
2
  import os
3
  import torch
4
  import transformers
5
+ import shutil
6
+ stat = shutil.disk_usage('.')
7
+ print('Disk usage:')
8
+ print(stat)
9
 
10
  device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
11