Fx
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def audionar_tts(text='frogs',
|
|
| 22 |
background_audio = audiogen.generate(
|
| 23 |
text[:64], # soundscape text - discard if too long cross attention
|
| 24 |
duration=duration, # dont use all A/R tokens if duration is shorter than tokens<<
|
| 25 |
-
max_tokens=min(max(7, int(max_tokens)), int(duration
|
| 26 |
cache_lim=max(6, int(cache_lim)), # Sink Attn
|
| 27 |
).numpy()
|
| 28 |
|
|
|
|
| 22 |
background_audio = audiogen.generate(
|
| 23 |
text[:64], # soundscape text - discard if too long cross attention
|
| 24 |
duration=duration, # dont use all A/R tokens if duration is shorter than tokens<<
|
| 25 |
+
max_tokens=min(max(7, int(max_tokens)), int(duration*50)), # kv cache lowest n_preserve
|
| 26 |
cache_lim=max(6, int(cache_lim)), # Sink Attn
|
| 27 |
).numpy()
|
| 28 |
|