Przeglądaj źródła

Fix streaming bug

Lengyue 1 rok temu
rodzic
commit
f473a75500
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      tools/webui.py

+ 1 - 1
tools/webui.py

@@ -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)