Spaces:
Sleeping
Sleeping
Commit
•
9bd3413
1
Parent(s):
e2c06c5
don't specify duration
Browse files
app.py
CHANGED
@@ -176,7 +176,7 @@ target_dtype = np.int16
|
|
176 |
max_range = np.iinfo(target_dtype).max
|
177 |
|
178 |
|
179 |
-
@spaces.GPU(
|
180 |
def generate_audio(text_prompt, audio_length_in_s=10.0, play_steps_in_s=2.0, seed=0):
|
181 |
max_new_tokens = int(frame_rate * audio_length_in_s)
|
182 |
play_steps = int(frame_rate * play_steps_in_s)
|
|
|
176 |
max_range = np.iinfo(target_dtype).max
|
177 |
|
178 |
|
179 |
+
@spaces.GPU()
|
180 |
def generate_audio(text_prompt, audio_length_in_s=10.0, play_steps_in_s=2.0, seed=0):
|
181 |
max_new_tokens = int(frame_rate * audio_length_in_s)
|
182 |
play_steps = int(frame_rate * play_steps_in_s)
|