Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()
|
|
|