Spaces:
Running
on
Zero
Running
on
Zero
fixing typo
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def inference(audio_file, model_name, guidance_scale, ddim_steps, seed):
|
|
26 |
ddim_steps=ddim_steps
|
27 |
)
|
28 |
|
29 |
-
if torch.cuda.
|
30 |
torch.cuda.empty_cache()
|
31 |
|
32 |
gc.collect()
|
|
|
26 |
ddim_steps=ddim_steps
|
27 |
)
|
28 |
|
29 |
+
if torch.cuda.is_available():
|
30 |
torch.cuda.empty_cache()
|
31 |
|
32 |
gc.collect()
|