harp-dev commited on
Commit
1d49db6
·
verified ·
1 Parent(s): e3ba266

Import spaces before anything that initializes CUDA.

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -5,6 +5,8 @@ The pipeline is vendored from the authors' Space (ACE-Step/ACE-Step), which inst
5
  from PyPI, and runs here on ZeroGPU rather than being called over the network.
6
  """
7
 
 
 
8
  import tempfile
9
 
10
  import gradio as gr
 
5
  from PyPI, and runs here on ZeroGPU rather than being called over the network.
6
  """
7
 
8
+ import spaces # imported before torch, as ZeroGPU requires
9
+
10
  import tempfile
11
 
12
  import gradio as gr