M4xjunior commited on
Commit
e531154
·
verified ·
1 Parent(s): a3b14a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
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):