1inkusFace commited on
Commit
e5385ef
·
verified ·
1 Parent(s): 9819dd1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ import gradio as gr
35
  from stable_audio_tools import get_pretrained_model
36
  from stable_audio_tools.inference.generation import generate_diffusion_cond
37
 
38
- device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
39
 
40
  # Load the model outside of the GPU-decorated function
41
  def load_model():
 
35
  from stable_audio_tools import get_pretrained_model
36
  from stable_audio_tools.inference.generation import generate_diffusion_cond
37
 
38
+ device = torch.device("cuda:0")
39
 
40
  # Load the model outside of the GPU-decorated function
41
  def load_model():