Skip to content

Commit

Permalink
Fix streaming bug
Browse files Browse the repository at this point in the history
  • Loading branch information
leng-yue committed May 4, 2024
1 parent fadbdae commit f473a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def inference(
fake_audios = np.concatenate([fake_audios, np.zeros((11025,))], axis=0)

if streaming:
yield (fake_audios * 32768).astype(np.int16).tobytes()
yield (fake_audios * 32768).astype(np.int16).tobytes(), None
else:
segments.append(fake_audios)

Expand Down

0 comments on commit f473a75

Please sign in to comment.