Spaces:
Running
on
Zero
Can't downlaod the PNG when using the png endpoint
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!
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 ๐ค
Hi
@not-lain
I am facing hte same issue..Not able to download the image file generated..but the url seems to be correct...Please see this..Using the gradio api for the call..
can you please help.Appreciate your assistance,
https://not-lain-background-removal.hf.space/file=/tmp/gradio/74c60ae9b73ac75611993530ffb5d8df8d8148b611d4303c1209e3b55f6dc3ef/boi1.png
Thank you
Subin Babu
Hi
@subinbabu
for the moment i think you should try using the client either the JS or the python one.
the issue stems with gradio library and i can't fix it on my side, and I can't switch to gradio v5 without breaking the image slider tab (I still don't think they have fixed the issue for v5 yet)
will migrate all of the current not API compatible stuff to https://huggingface.co/spaces/not-lain/image-editor and will update this one this week to be just API compatible without breaking anything, still don't think the CLI will still work after the update but i'll give it a try none the less.
Thanks
Ok Sir thank you.. The download file happening on the /image option of python client but not on the /png option..
I am using the webp /image option download currently..
Thank you
You have a nice day.
Blessings in the name of my Lord And Saviour Jesus Christ.
Subin Babu
i did not know that the /png tab was not working, I will fix that ASAP.
Thanks for raising this!