mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 22:29:02 +08:00
fix re sub bug (#2199)
### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
parent
1d2c081710
commit
b10eb8d085
@ -53,9 +53,10 @@ class Base(ABC):
|
||||
def tts(self, audio):
|
||||
pass
|
||||
|
||||
def normalize_text(text):
|
||||
def normalize_text(self, text):
|
||||
return re.sub(r'(\*\*|##\d+\$\$|#)', '', text)
|
||||
|
||||
|
||||
class FishAudioTTS(Base):
|
||||
def __init__(self, key, model_name, base_url="https://api.fish.audio/v1/tts"):
|
||||
if not base_url:
|
||||
|
Loading…
x
Reference in New Issue
Block a user