yejunliang23 commited on
Commit
f43260e
Β·
verified Β·
1 Parent(s): 24570e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -11
app.py CHANGED
@@ -1,15 +1,6 @@
1
  import torch
2
  import subprocess
3
 
4
- print("torch.cuda.is_available():", torch.cuda.is_available())
5
- try:
6
- # η›΄ζŽ₯调用 nvidia-smi ζŸ₯ηœ‹ι©±εŠ¨η‰ˆζœ¬
7
- nv_out = subprocess.check_output(["nvidia-smi", "--query-gpu=name,driver_version,cuda_version", "--format=csv,noheader"])
8
- print(nv_out.decode("utf-8"))
9
- except Exception as e:
10
- print("nvidia-smi ζ— ζ³•ζ‰§θ‘Œζˆ–δΈε­˜εœ¨οΌš", e)
11
-
12
- """
13
  import os
14
  import torch
15
  from threading import Thread
@@ -497,5 +488,4 @@ with gr.Blocks() as demo:
497
  show_progress=True)
498
 
499
 
500
- demo.launch()
501
- """
 
1
  import torch
2
  import subprocess
3
 
 
 
 
 
 
 
 
 
 
4
  import os
5
  import torch
6
  from threading import Thread
 
488
  show_progress=True)
489
 
490
 
491
+ demo.launch()