Tomtom84 commited on
Commit
f4406f3
·
verified ·
1 Parent(s): 83532d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ NEW_BLOCK = 128257
21
  EOS_TOKEN = 128258
22
  AUDIO_BASE = 128266
23
  AUDIO_SPAN = 4096 * 7 # 28 672 Codes
24
- VALID_AUDIO = torch.arange(AUDIO_BASE, AUDIO_BASE + AUDIO_SPAN)
25
 
26
  # 2) Logit‑Mask (NEW_BLOCK + Audio; EOS erst nach 1. Block) ----------
27
  class AudioMask(LogitsProcessor):
 
21
  EOS_TOKEN = 128258
22
  AUDIO_BASE = 128266
23
  AUDIO_SPAN = 4096 * 7 # 28 672 Codes
24
+ AUDIO_IDS = torch.arange(AUDIO_BASE, AUDIO_BASE + AUDIO_SPAN) # Renamed VALID_AUDIO to AUDIO_IDS
25
 
26
  # 2) Logit‑Mask (NEW_BLOCK + Audio; EOS erst nach 1. Block) ----------
27
  class AudioMask(LogitsProcessor):