Skip to content

Commit

Permalink
fix: back
Browse files Browse the repository at this point in the history
Signed-off-by: yihong0618 <[email protected]>
  • Loading branch information
yihong0618 committed Apr 12, 2024
1 parent 74f9de2 commit 4448113
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
6 changes: 3 additions & 3 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ lz4==4.3.3
markdown-it-py==3.0.0
marshmallow==3.20.1
mdurl==0.1.2
miservice-fork==2.4.1
miservice-fork==2.4.2
multidict==6.0.4
mutagen==1.47.0
mypy-extensions==1.0.0
Expand Down
3 changes: 0 additions & 3 deletions xiaogpt/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,6 @@ def main():
options = parser.parse_args()
if options.bot in ["bard"] and options.stream:
raise Exception("For now Bard do not support stream")
if options.tts in ["edge", "openai", "azure"]:
print("Will close stream to better tts")
options.stream = False
config = Config.from_options(options)

miboy = MiGPT(config)
Expand Down
3 changes: 0 additions & 3 deletions xiaogpt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,6 @@ def __post_init__(self) -> None:
)
if self.tts == "azure" and not self.azure_tts_speech_key:
raise Exception("Using Azure TTS needs azure speech key")
if self.tts in ["azure", "edge", "openai"]:
print("Will close stream when use tts: {self.tts} for better experience")
self.stream = False

@property
def tts_command(self) -> str:
Expand Down

0 comments on commit 4448113

Please sign in to comment.