so i believe I have narrowed this down to a problem with addressing duplicate space hierarchies.
The unnamed API endpoint method below works with other spaces where the space is the original and not duplicated
const result = await app.predict(1, [
"null",
]);
However, I have duplicated the space so i am following the duplicate method as follows
const app = await duplicate("badayvedat/LLaVA", { hf_token: "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", private: true });
const app_info = await app.view_api();
console.log(app_info);
const result = await app.predict(1, [
"null",
]);
console.log(result.data);
This does not work. There is a 404 conflict error and the same uncaught type error returned. The complication is the original space LLaVA - a Hugging Face Space by badayvedat
does not have API endpoints. However a duplicate space LLaVA - a Hugging Face Space by ysharma does. I have duplicated from the latter. How to reference a duplicate of a duplicate to get the correct .predict API endpoint call?
This feels very close but still not functional