mirror of
https://github.com/HumanAIGC-Engineering/gradio-webrtc.git
synced 2026-02-05 18:09:23 +08:00
Fix msg (#275)
This commit is contained in:
@@ -47,7 +47,7 @@
|
|||||||
msg?.type === "warning" ||
|
msg?.type === "warning" ||
|
||||||
msg?.type === "error"
|
msg?.type === "error"
|
||||||
) {
|
) {
|
||||||
gradio.dispatch(msg?.type === "error" ? "error" : "warning", msg.message);
|
gradio.dispatch(msg?.type === "error" ? "error" : "warning", msg.data);
|
||||||
} else if (msg?.type === "end_stream") {
|
} else if (msg?.type === "end_stream") {
|
||||||
gradio.dispatch("warning", msg.data);
|
gradio.dispatch("warning", msg.data);
|
||||||
} else if (msg?.type === "fetch_output") {
|
} else if (msg?.type === "fetch_output") {
|
||||||
|
|||||||
Reference in New Issue
Block a user