Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def load_model():
|
|
18 |
return model, model_config
|
19 |
|
20 |
# Function to set up, generate, and process the audio
|
21 |
-
@spaces.GPU(duration=
|
22 |
def generate_audio(prompt, seconds_total=30, steps=100, cfg_scale=7):
|
23 |
print(f"Prompt received: {prompt}")
|
24 |
print(f"Settings: Duration={seconds_total}s, Steps={steps}, CFG Scale={cfg_scale}")
|
|
|
18 |
return model, model_config
|
19 |
|
20 |
# Function to set up, generate, and process the audio
|
21 |
+
@spaces.GPU(duration=60) # Allocate GPU only when this function is called
|
22 |
def generate_audio(prompt, seconds_total=30, steps=100, cfg_scale=7):
|
23 |
print(f"Prompt received: {prompt}")
|
24 |
print(f"Settings: Duration={seconds_total}s, Steps={steps}, CFG Scale={cfg_scale}")
|