redkits commited on
Commit
04d3033
·
verified ·
1 Parent(s): eb97492

Upload server.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. server.py +1 -1
server.py CHANGED
@@ -16,7 +16,7 @@ print(f"[video] torch version: {torch.__version__}", flush=True)
16
  print(f"[video] CUDA available: {torch.cuda.is_available()}", flush=True)
17
  if torch.cuda.is_available():
18
  print(f"[video] GPU: {torch.cuda.get_device_name(0)}", flush=True)
19
- print(f"[video] VRAM: {torch.cuda.get_device_properties(0).total_mem / 1e9:.1f} GB", flush=True)
20
 
21
  app = Flask(__name__)
22
  pipe = None
 
16
  print(f"[video] CUDA available: {torch.cuda.is_available()}", flush=True)
17
  if torch.cuda.is_available():
18
  print(f"[video] GPU: {torch.cuda.get_device_name(0)}", flush=True)
19
+ print(f"[video] VRAM: {torch.cuda.get_device_properties(0).total_memory / 1e9:.1f} GB", flush=True)
20
 
21
  app = Flask(__name__)
22
  pipe = None