Explorar el Código

Fix streaming bug

Lengyue hace 1 año
padre
commit
f473a75500
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)