Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,10 +7,7 @@ import torchaudio
|
|
7 |
|
8 |
from resemble_enhance.enhancer.inference import denoise, enhance
|
9 |
|
10 |
-
if torch.cuda.is_available()
|
11 |
-
device = "cuda"
|
12 |
-
else:
|
13 |
-
device = "cpu"
|
14 |
|
15 |
|
16 |
def _fn(path, solver, nfe, tau, denoising, unlimited):
|
|
|
7 |
|
8 |
from resemble_enhance.enhancer.inference import denoise, enhance
|
9 |
|
10 |
+
device: str = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
|
|
|
|
11 |
|
12 |
|
13 |
def _fn(path, solver, nfe, tau, denoising, unlimited):
|