Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,6 +15,7 @@ from languages import get_language_names
|
|
| 15 |
from subtitle import text_output, subtitle_output
|
| 16 |
|
| 17 |
import subprocess
|
|
|
|
| 18 |
|
| 19 |
try:
|
| 20 |
import spaces
|
|
@@ -52,7 +53,6 @@ def device_info():
|
|
| 52 |
except subprocess.CalledProcessError as e:
|
| 53 |
print(f"Command failed: {e}")
|
| 54 |
|
| 55 |
-
from gpustat import GPUStatCollection
|
| 56 |
|
| 57 |
def update_gpu_status():
|
| 58 |
if torch.cuda.is_available() == False:
|
|
|
|
| 15 |
from subtitle import text_output, subtitle_output
|
| 16 |
|
| 17 |
import subprocess
|
| 18 |
+
from gpustat import GPUStatCollection
|
| 19 |
|
| 20 |
try:
|
| 21 |
import spaces
|
|
|
|
| 53 |
except subprocess.CalledProcessError as e:
|
| 54 |
print(f"Command failed: {e}")
|
| 55 |
|
|
|
|
| 56 |
|
| 57 |
def update_gpu_status():
|
| 58 |
if torch.cuda.is_available() == False:
|