Closed mahiatlinux closed 1 week ago
What version of @gradio/client
do you have installed?
What version of
@gradio/client
do you have installed?
@pngwn
It's the latest one.
Thank you! I shall take a look.
I have the same issue with version 0.18.0.
Anyway I've tried with version 0.17.0 but I never receive "on data" and the status callback gave me an "error"
<input id="photo" type="file">
<div id="results"></div>
<script type="module">
import { Client } from "https://cdn.jsdelivr.net/npm/@gradio/client@0.17.0/dist/index.min.js";
async function loaded(reader) {
const app = await Client.connect('ratotna/unconscious');
const result =app.submit('/predict', [
reader.result, // blob in 'img' Image component
]).on("data", (data) => console.log("data " + data))
.on("status", (status) => console.log(status));
}
function read() {
const reader = new FileReader();
reader.addEventListener('load', () => loaded(reader))
reader.readAsDataURL(photo.files[0]);
}
photo.addEventListener('input', read);
</script>
@pngwn Any updates?
I have tested some of the older versions like 0.17.0
and 0.16.0
. A new Window not defined
error in the older versions.
We will need to release a new version get a fix out unfortunately. Early next week.
We will need to release a new version get a fix out unfortunately. Early next week.
Hmmm... OK Thanks! Could you please give me a specific date? It is pretty urgent for me sorry.
Met same bug...Been debugging for a while... Really tried couple different ways in JS to call SSE. It's wired none of the audio ASR model is working for me. Hope to see the fix out soon
@pngwn How to install for NPM? Thanks!
We will release this fix later today.
Hey @mahiatlinux , I tried to call your model using the latest 0.19.0. It's giving out different error msg but still not working on model with Sever Sent Events. Becuase it's not working on my model either. I just wanna check if this is error in my config or the SDK is still generally off. @pngwn Error message like:
client.predict Error: {
type: 'status',
endpoint: '/chat',
fn_index: 9,
time: 2024-05-11T16:08:13.032Z,
queue: true,
message: null,
stage: 'error',
code: undefined,
success: false
}
Error Message: null
Describe the bug
Hey guys. The Gradio Client package for NodeJS doesn't seem to be working correctly. It does not connect to the Space.
NodeJS:
Output:
The Python one works normally and connects to the Space. For eg Python:
Output:
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
No response
System Info
Severity
Blocking usage of gradio