Spaces:
Runtime error
Runtime error
Commit
•
b6315dc
1
Parent(s):
91588de
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,9 @@
|
|
|
|
1 |
import torch
|
2 |
import torchaudio
|
3 |
from einops import rearrange
|
4 |
from stable_audio_tools import get_pretrained_model
|
5 |
from stable_audio_tools.inference.generation import generate_diffusion_cond
|
6 |
-
|
7 |
-
import spaces
|
8 |
-
|
9 |
# Download model
|
10 |
model, model_config = get_pretrained_model("stabilityai/stable-audio-open-1.0")
|
11 |
sample_rate = model_config["sample_rate"]
|
|
|
1 |
+
import spaces
|
2 |
import torch
|
3 |
import torchaudio
|
4 |
from einops import rearrange
|
5 |
from stable_audio_tools import get_pretrained_model
|
6 |
from stable_audio_tools.inference.generation import generate_diffusion_cond
|
|
|
|
|
|
|
7 |
# Download model
|
8 |
model, model_config = get_pretrained_model("stabilityai/stable-audio-open-1.0")
|
9 |
sample_rate = model_config["sample_rate"]
|