multimodalart HF Staff Claude Opus 4.6 commited on
Commit
930ae2b
·
1 Parent(s): 477ec17

Fix ZeroGPU nested @spaces.GPU causing CUDA failure 35

Browse files

Remove @spaces.GPU from internal AppState methods (run_preprocess,
run_svs, run_svs_from_paths) since they are already called from
Gradio-facing functions that hold the GPU context. Also enable
share=True in app.py launch.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Files changed (2) hide show
  1. app.py +1 -0
  2. webui.py +0 -3
app.py CHANGED
@@ -25,4 +25,5 @@ if __name__ == "__main__":
25
  page.launch(
26
  server_name="0.0.0.0",
27
  server_port=int(os.environ.get("PORT", "7860")),
 
28
  )
 
25
  page.launch(
26
  server_name="0.0.0.0",
27
  server_port=int(os.environ.get("PORT", "7860")),
28
+ share=True,
29
  )
webui.py CHANGED
@@ -170,7 +170,6 @@ class AppState:
170
  )
171
  self.phoneset_path = "soulxsinger/utils/phoneme/phone_set.json"
172
 
173
- @spaces.GPU
174
  def run_preprocess(
175
  self,
176
  prompt_path: Path,
@@ -200,7 +199,6 @@ class AppState:
200
  except Exception as e:
201
  return False, f"preprocess failed: {e}"
202
 
203
- @spaces.GPU
204
  def run_svs(
205
  self,
206
  control: str,
@@ -237,7 +235,6 @@ class AppState:
237
  except Exception as e:
238
  return False, f"svs inference failed: {e}", None, prompt_meta_path, target_meta_path
239
 
240
- @spaces.GPU
241
  def run_svs_from_paths(
242
  self,
243
  prompt_wav_path: str,
 
170
  )
171
  self.phoneset_path = "soulxsinger/utils/phoneme/phone_set.json"
172
 
 
173
  def run_preprocess(
174
  self,
175
  prompt_path: Path,
 
199
  except Exception as e:
200
  return False, f"preprocess failed: {e}"
201
 
 
202
  def run_svs(
203
  self,
204
  control: str,
 
235
  except Exception as e:
236
  return False, f"svs inference failed: {e}", None, prompt_meta_path, target_meta_path
237
 
 
238
  def run_svs_from_paths(
239
  self,
240
  prompt_wav_path: str,