alex-ht commited on
Commit
ca502f3
1 Parent(s): 91d53d9
Files changed (1) hide show
  1. ultravox_processing.py +1 -1
ultravox_processing.py CHANGED
@@ -180,7 +180,7 @@ class UltravoxProcessor(transformers.ProcessorMixin):
180
 
181
  start_idx = len(
182
  self.tokenizer.encode(
183
- t[: text.t(self.audio_placeholder)],
184
  add_special_tokens=False,
185
  )
186
  )
 
180
 
181
  start_idx = len(
182
  self.tokenizer.encode(
183
+ t[: t.index(self.audio_placeholder)],
184
  add_special_tokens=False,
185
  )
186
  )