LING commited on
Commit
23df7cf
·
1 Parent(s): 0edd2d1

Use Stable Audio 3 compatible runtime

Browse files
Files changed (4) hide show
  1. SOURCES.md +6 -5
  2. THIRD_PARTY_NOTICES.md +7 -0
  3. model.json +3 -2
  4. stable_audio_runtime.py +5 -2
SOURCES.md CHANGED
@@ -12,10 +12,11 @@
12
 
13
  ## Runtime
14
 
15
- - Package: `stable-audio-tools==0.0.19`
16
  - Source: https://github.com/Stability-AI/stable-audio-tools
 
 
17
 
18
- The Space installs the runtime package without dependencies because its
19
- published metadata fixes an older Torch version. Runtime dependencies are
20
- declared separately in `requirements.txt` to remain compatible with
21
- Hugging Face ZeroGPU and pyHARP.
 
12
 
13
  ## Runtime
14
 
 
15
  - Source: https://github.com/Stability-AI/stable-audio-tools
16
+ - Source revision: `3241adba4fc2a85cf5b29d9eb68d42f40a28e820`
17
+ - Source license: MIT
18
 
19
+ The Space installs the runtime source without dependencies because its package
20
+ metadata fixes an older Torch version. Runtime dependencies are declared
21
+ separately in `requirements.txt` to remain compatible with Hugging Face
22
+ ZeroGPU and pyHARP.
THIRD_PARTY_NOTICES.md CHANGED
@@ -7,6 +7,13 @@ License:
7
 
8
  https://github.com/Stability-AI/stable-audio-3
9
 
 
 
 
 
 
 
 
10
  ## Stable Audio 3 Small-Music Weights
11
 
12
  The model weights are governed by the Stability AI Community License:
 
7
 
8
  https://github.com/Stability-AI/stable-audio-3
9
 
10
+ ## Stable Audio Tools
11
+
12
+ The Stable Audio Tools runtime is provided by Stability AI under the MIT
13
+ License:
14
+
15
+ https://github.com/Stability-AI/stable-audio-tools
16
+
17
  ## Stable Audio 3 Small-Music Weights
18
 
19
  The model weights are governed by the Stability AI Community License:
model.json CHANGED
@@ -11,8 +11,9 @@
11
  "license": "MIT"
12
  },
13
  "runtime": {
14
- "package": "stable-audio-tools",
15
- "version": "0.0.19"
 
16
  },
17
  "model": {
18
  "repo": "stabilityai/stable-audio-3-small-music",
 
11
  "license": "MIT"
12
  },
13
  "runtime": {
14
+ "repo": "Stability-AI/stable-audio-tools",
15
+ "revision": "3241adba4fc2a85cf5b29d9eb68d42f40a28e820",
16
+ "license": "MIT"
17
  },
18
  "model": {
19
  "repo": "stabilityai/stable-audio-3-small-music",
stable_audio_runtime.py CHANGED
@@ -8,7 +8,7 @@ from pathlib import Path
8
 
9
  MODEL_REPO = "stabilityai/stable-audio-3-small-music"
10
  MODEL_REVISION = "0fef1392cd842149a2b6d445e181c97608faac06"
11
- STABLE_AUDIO_TOOLS_VERSION = "0.0.19"
12
  OUTPUT_ROOT = Path(tempfile.gettempdir()) / "stable_audio_3_outputs"
13
 
14
  _MODEL = None
@@ -32,7 +32,10 @@ def _ensure_stable_audio_tools() -> None:
32
  "install",
33
  "--quiet",
34
  "--no-deps",
35
- f"stable-audio-tools=={STABLE_AUDIO_TOOLS_VERSION}",
 
 
 
36
  ]
37
  )
38
 
 
8
 
9
  MODEL_REPO = "stabilityai/stable-audio-3-small-music"
10
  MODEL_REVISION = "0fef1392cd842149a2b6d445e181c97608faac06"
11
+ STABLE_AUDIO_TOOLS_REVISION = "3241adba4fc2a85cf5b29d9eb68d42f40a28e820"
12
  OUTPUT_ROOT = Path(tempfile.gettempdir()) / "stable_audio_3_outputs"
13
 
14
  _MODEL = None
 
32
  "install",
33
  "--quiet",
34
  "--no-deps",
35
+ (
36
+ "git+https://github.com/Stability-AI/stable-audio-tools.git@"
37
+ f"{STABLE_AUDIO_TOOLS_REVISION}"
38
+ ),
39
  ]
40
  )
41