Spaces:
Running
on
Zero
Running
on
Zero
Doubleupai
commited on
Commit
•
2459559
1
Parent(s):
cfd828f
Update app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,8 @@ 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=
|
23 |
print(f"Prompt received: {prompt}")
|
24 |
print(f"Settings: Duration={seconds_total}s, Steps={steps}, CFG Scale={cfg_scale}")
|
25 |
|
|
|
18 |
return model, model_config
|
19 |
|
20 |
# Function to set up, generate, and process the audio
|
21 |
+
@spaces.GPU(duration=800) # Allocate GPU only when this function is called
|
22 |
+
def generate_audio(prompt, seconds_total=811, 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}")
|
25 |
|