gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
32.41k stars 2.42k forks source link

Need help to connect either reactnative or node with a gradio model #8472

Closed Amishmaqbool closed 3 months ago

Amishmaqbool commented 3 months ago

Describe the bug

I am trying to create an API in node which connect with hugging face using gradio js client But I get error when I submit my request Related code is here https://gist.github.com/Amishmaqbool/472a968c4ed4d8d2b27d17e3bd670fe8 and ss attached has the item I get when I inspect my clients endpoints.

Have you searched existing issues? 🔎

Reproduction

npm start and then send request to localhost:3000/tryon using postman it logs the error in terminal app.

Screenshot

image

Screenshot 2024-06-06 at 6 50 13 AM

Logs

{
  type: 'status',
  endpoint: '/tryon',
  fn_index: 2,
  time: 2024-06-06T01:49:43.641Z,
  queue: true,
  message: null,
  stage: 'error',
  code: undefined,
  success: false
}

System Info

"@gradio/client": "^0.20.1",

Severity

Blocking usage of gradio

freddyaboulton commented 3 months ago

Can you please try upgrading to the latest version?

Amishmaqbool commented 3 months ago

Yes it worked using handle_file.