- Import from product_management.get_manager() instead of llmage.accounting - Also loads load_llmage for pricing/discount initialization
10 lines
417 B
Python
10 lines
417 B
Python
# Patch for /data/ymq/demucs-service/workers/separate.py
|
|
# In run_separate_full(), ensure the return dict includes:
|
|
# "usage": {"audio_seconds": duration}
|
|
|
|
# Find the return statement in run_separate_full and add usage field.
|
|
# The function currently returns something like:
|
|
# return {"vocals_path": ..., "accompaniment_path": ..., "duration": ...}
|
|
#
|
|
# Add: "usage": {"audio_seconds": result.get("duration", 0)}
|