This commit is contained in:
Freddy Boulton
2025-05-13 12:11:58 -04:00
committed by GitHub
parent 8f61ad855d
commit ae95e973f6
3 changed files with 7 additions and 3 deletions

View File

@@ -47,7 +47,10 @@
msg?.type === "warning" ||
msg?.type === "error"
) {
gradio.dispatch(msg?.type === "error" ? "error" : "warning", msg.data);
gradio.dispatch(
msg?.type === "error" ? "error" : "warning",
msg?.data || msg?.message,
);
} else if (msg?.type === "end_stream") {
gradio.dispatch("warning", msg.data);
} else if (msg?.type === "fetch_output") {