ambujm22 commited on
Commit
b55969e
·
verified ·
1 Parent(s): 2b5346b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -1,5 +1,6 @@
1
  # ---------- Gradio CDN fix ----------
2
  import os
 
3
  os.environ.setdefault("GRADIO_USE_CDN", "true")
4
  @spaces.GPU(duration=30)
5
  def _gpu_probe() -> str:
@@ -15,11 +16,6 @@ import numpy as np
15
  import soundfile as sf
16
  from huggingface_hub import hf_hub_download
17
 
18
- # >>> NEW: import spaces unconditionally and define a probe so ZeroGPU sees a @spaces.GPU fn at import time
19
- import spaces
20
-
21
-
22
-
23
  # Detect ZeroGPU (used only to decide whether to call GPU code)
24
  USE_ZEROGPU = os.getenv("SPACE_RUNTIME", "").lower() == "zerogpu"
25
 
 
1
  # ---------- Gradio CDN fix ----------
2
  import os
3
+ import spaces
4
  os.environ.setdefault("GRADIO_USE_CDN", "true")
5
  @spaces.GPU(duration=30)
6
  def _gpu_probe() -> str:
 
16
  import soundfile as sf
17
  from huggingface_hub import hf_hub_download
18
 
 
 
 
 
 
19
  # Detect ZeroGPU (used only to decide whether to call GPU code)
20
  USE_ZEROGPU = os.getenv("SPACE_RUNTIME", "").lower() == "zerogpu"
21