Skip to content

Commit

Permalink
fix: cache reference by hash (fishaudio#730) (fishaudio#741)
Browse files Browse the repository at this point in the history
  • Loading branch information
hguandl authored Dec 13, 2024
1 parent fcceef7 commit 36c845b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tools/inference_engine/reference_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ def load_by_hash(

else:
# Reuse already encoded references
prompt_text, prompt_token = self.ref_by_hash[audio_hashes[i]]
prompt_texts.append(prompt_text)
prompt_tokens.append(prompt_token)
prompt_tokens, prompt_texts = self.ref_by_hash[audio_hashes[i]]
cache_used = True

if cache_used:
Expand Down

0 comments on commit 36c845b

Please sign in to comment.