You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
When executing this specific request with Gradio JS client, the data event is well streamed by the server but not handled by the client, it return empty data: [].
This problem occurs both on submit() and predict(). First time I meet this issue by working with Gradio API.
Please note that this is working fine with Python client.
Space used here : https://huggingface.co/spaces/TencentARC/InstantMesh
Have you searched existing issues? 🔎
I have searched and found no existing issues
Reproduction
Script :
import{Client,handle_file}from"@gradio/client";asyncfunctiongenerate(image_url){constclient=awaitClient.connect("TencentARC/InstantMesh",{events: ["status","data"]});constimage=awaitfetch(image_url);constimage_blob=awaitimage.blob();// This is working fineconstresult_mvs_image=awaitclient.predict("/generate_mvs",[handle_file(image_blob),50,10000,]);// This is returning empty data objectconstjob=client.submit("/make3d",[]);forawait(constmessageofjob){if(message.type==="status"){// .... }if(message.type==="data"){console.log(JSON.stringify(message));}}}
Describe the bug
Hi,
When executing this specific request with Gradio JS client, the data event is well streamed by the server but not handled by the client, it return empty
data: []
.This problem occurs both on submit() and predict(). First time I meet this issue by working with Gradio API.
Please note that this is working fine with Python client.
Space used here : https://huggingface.co/spaces/TencentARC/InstantMesh
Have you searched existing issues? 🔎
Reproduction
Script :
Console output :
Event stream :
Screenshot
No response
Logs
No response
System Info
Using `https://cdn.jsdelivr.net/npm/@gradio/[email protected]/+esm` on basic HTML application.
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: