Spaces:
Running
Running
Fix GenerationResult attribute: use audios dict, not audio_paths
Browse files- src/ace_step_engine.py +4 -3
src/ace_step_engine.py
CHANGED
|
@@ -217,12 +217,13 @@ class ACEStepEngine:
|
|
| 217 |
save_dir=output_dir,
|
| 218 |
)
|
| 219 |
|
| 220 |
-
if result.
|
| 221 |
-
output_path = result.
|
| 222 |
logger.info(f" Generated: {output_path}")
|
| 223 |
return output_path
|
| 224 |
else:
|
| 225 |
-
|
|
|
|
| 226 |
|
| 227 |
except Exception as e:
|
| 228 |
logger.error(f"Generation failed: {e}")
|
|
|
|
| 217 |
save_dir=output_dir,
|
| 218 |
)
|
| 219 |
|
| 220 |
+
if result.audios and result.audios[0].get("path"):
|
| 221 |
+
output_path = result.audios[0]["path"]
|
| 222 |
logger.info(f" Generated: {output_path}")
|
| 223 |
return output_path
|
| 224 |
else:
|
| 225 |
+
error = result.error or "No audio generated"
|
| 226 |
+
raise RuntimeError(error)
|
| 227 |
|
| 228 |
except Exception as e:
|
| 229 |
logger.error(f"Generation failed: {e}")
|