Spaces:
Running
on
Zero
Running
on
Zero
ameerazam08
commited on
Commit
•
55f83aa
1
Parent(s):
0c137f6
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ hf_token = os.getenv('HF_TOKEN')
|
|
11 |
login(token=hf_token,add_to_git_credential=True)
|
12 |
|
13 |
# Define the function to generate audio
|
14 |
-
@spaces.GPU()
|
15 |
def generate_audio(prompt, bpm, seconds_total):
|
16 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
17 |
|
|
|
11 |
login(token=hf_token,add_to_git_credential=True)
|
12 |
|
13 |
# Define the function to generate audio
|
14 |
+
@spaces.GPU(duration=120)
|
15 |
def generate_audio(prompt, bpm, seconds_total):
|
16 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
17 |
|