manoskary commited on
Commit
9cf8b3c
·
verified ·
1 Parent(s): 4beb509

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -95,7 +95,7 @@ def generate_audio(prompt, seconds_total=30, steps=100, cfg_scale=7):
95
  sigma_min=0.3,
96
  sigma_max=500,
97
  sampler_type="dpmpp-3m-sde",
98
- device=device,
99
  )
100
  # [B, C, N] -> [C, B*N] -> [N, C] for Gradio
101
  audio = rearrange(audio, "b c n -> c (b n)") # (C, T)
@@ -226,9 +226,6 @@ interface = gr.Interface(
226
  """
227
  )
228
 
229
- # Pre-load the model to avoid multiprocessing issues
230
- model, model_config = load_model()
231
-
232
  # Launch the Interface
233
  if __name__ == "__main__":
234
  interface.launch()
 
95
  sigma_min=0.3,
96
  sigma_max=500,
97
  sampler_type="dpmpp-3m-sde",
98
+ device="cuda",
99
  )
100
  # [B, C, N] -> [C, B*N] -> [N, C] for Gradio
101
  audio = rearrange(audio, "b c n -> c (b n)") # (C, T)
 
226
  """
227
  )
228
 
 
 
 
229
  # Launch the Interface
230
  if __name__ == "__main__":
231
  interface.launch()