ambujm22 commited on
Commit
4fa82ee
·
verified ·
1 Parent(s): cdf44e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -1,8 +1,6 @@
1
- # ========= MUST BE FIRST: Gradio entry + ZeroGPU probes =========
2
  import os
3
  os.environ.setdefault("GRADIO_USE_CDN", "true")
4
 
5
- # Make 'spaces' safe locally too
6
  try:
7
  import spaces # HF Spaces SDK
8
  except Exception:
@@ -12,7 +10,7 @@ except Exception:
12
  return deco
13
  spaces = _DummySpaces()
14
 
15
- # Public probes so ZeroGPU supervisor can detect them
16
  @spaces.GPU(duration=10)
17
  def gpu_probe(a: int = 1, b: int = 1):
18
  return a + b
@@ -236,6 +234,7 @@ with gr.Blocks(title="SonicMaster – Text-Guided Restoration & Mastering", fill
236
  "Upload audio or pick an example, write a prompt (or leave blank), then click **Enhance**.\n"
237
  "If left blank, we'll use a generic prompt: _Enhance the input audio_.\n"
238
  "- First run downloads model weights (progress will show).\n"
 
239
  )
240
  with gr.Row():
241
  with gr.Column(scale=1):
 
 
1
  import os
2
  os.environ.setdefault("GRADIO_USE_CDN", "true")
3
 
 
4
  try:
5
  import spaces # HF Spaces SDK
6
  except Exception:
 
10
  return deco
11
  spaces = _DummySpaces()
12
 
13
+
14
  @spaces.GPU(duration=10)
15
  def gpu_probe(a: int = 1, b: int = 1):
16
  return a + b
 
234
  "Upload audio or pick an example, write a prompt (or leave blank), then click **Enhance**.\n"
235
  "If left blank, we'll use a generic prompt: _Enhance the input audio_.\n"
236
  "- First run downloads model weights (progress will show).\n"
237
+ "- The enhanced audio may take a few seconds to appear after processing. Please wait until the output loads."
238
  )
239
  with gr.Row():
240
  with gr.Column(scale=1):