Skip to content

Commit

Permalink
Merge pull request #1067 from Ikaros-521/owner
Browse files Browse the repository at this point in the history
修复:GSV删除ws配置导致的运行bug
  • Loading branch information
Ikaros-521 authored Dec 12, 2024
2 parents 5824a06 + 9d09836 commit 9b95609
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2446,7 +2446,7 @@ def on_message(ws, message):
def on_error(ws, error):
logger.error(f"Error:{error}")

def on_close(ws):
def on_close(ws, close_status_code, close_msg):
logger.debug("WebSocket connection closed")

def on_open(ws):
Expand Down
1 change: 0 additions & 1 deletion utils/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,6 @@ async def tts_handle(self, message):
data = {
"type": message["data"]["type"],
"gradio_ip_port": message["data"]["gradio_ip_port"],
"ws_ip_port": message["data"]["ws_ip_port"],
"api_ip_port": message["data"]["api_ip_port"],
"ref_audio_path": message["data"]["ref_audio_path"],
"prompt_text": message["data"]["prompt_text"],
Expand Down

0 comments on commit 9b95609

Please sign in to comment.