Kevin Hu commited on
Commit
4d9237e
·
1 Parent(s): 202a53b

fix re sub bug (#2199)

Browse files

### What problem does this PR solve?



### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Files changed (1) hide show
  1. rag/llm/tts_model.py +2 -1
rag/llm/tts_model.py CHANGED
@@ -53,9 +53,10 @@ class Base(ABC):
53
  def tts(self, audio):
54
  pass
55
 
56
- def normalize_text(text):
57
  return re.sub(r'(\*\*|##\d+\$\$|#)', '', text)
58
 
 
59
  class FishAudioTTS(Base):
60
  def __init__(self, key, model_name, base_url="https://api.fish.audio/v1/tts"):
61
  if not base_url:
 
53
  def tts(self, audio):
54
  pass
55
 
56
+ def normalize_text(self, text):
57
  return re.sub(r'(\*\*|##\d+\$\$|#)', '', text)
58
 
59
+
60
  class FishAudioTTS(Base):
61
  def __init__(self, key, model_name, base_url="https://api.fish.audio/v1/tts"):
62
  if not base_url: