Can't downlaod the PNG when using the png endpoint

#8
by Jackyyan - opened

Hi @not-lain ,

When I was using the /png endpoint, I got a result like this:

data: [{"path": "/tmp/gradio/c0462e302371d1334439ae2e98b96e8c83831cab12e393d56948a1a0b2661f3c/image.png", "url": "https://not-lain-background-removal.hf.spa/file=/tmp/gradio/c0462e302371d1334439ae2e98b96e8c83831cab12e393d56948a1a0b2661f3c/image.png", "size": 731572, "orig_name": "image.png", "mime_type": null, "is_stream": false, "meta": {"_type": "gradio.FileData"}}]

But I can't open or download the PNG, can you give me some suggestions?

Thanks!

image.png

Jackyyan changed discussion title from Can't downlaod the PNG to Can't downlaod the PNG when using the png endpoint

I think I have found the reason, the URL should be https://not-lain-background-removal.hf.space/file=/tmp/gradio/c0462e302371d1334439ae2e98b96e8c83831cab12e393d56948a1a0b2661f3c/image.png, which has missed the ce characters. Hope you can fix it, thanks!

Hi @Jackyyan
Thanks a lot for reporting this as well as identifying the exact issue with the url.
I have reported this to the library maintainers at https://github.com/gradio-app/gradio/issues/9317
will update this space to the latest version as soon as they deploy a fix, in the meantime if you have any workaround this feel free to share them with the community ๐Ÿค—

Sign up or log in to comment