How to access tmp files of a space?
Greetings,I have a space running on huggingface, it saves an image but I don’t know how to access the save image like the url of it. I tried:https://huggingface.co/spaces/tommy24/classifier/file=/tmp/{filename}but it doesn’t work. Please help me out.Thank you
2023-10-23T03:46:33Z
hi@anon85546878,You probably want to access thefileparam via the subdomain app. Please tryhttps://tommy24-classifier.hf.space/file=/tmp/{filename}
2023-12-02T20:40:42Z
Facing this error: {“detail”:“File not allowed: /tmp/image.png.”}Even though the file has been saved, This happens to all the files.Please help me out.
2024-01-03T17:04:49Z
Facing the same error: {“detail”:“File not allowed: /tmp/upload/saved_image.jpg.”}@radames
2024-01-03T18:48:59Z
hi@tommy24and@anon85546878accessing files via thefile/route is very Gradio specific and it also depends on your app implementation. A few notes to consider, have a look atallowed pathson Gradio docs, make sure the temp file you’re creating is not removed before accessing it via thefile/route
2024-01-12T11:12:29Z
Still not working. Shall I share the code snippet with you? Is it possible for you to look into it and help me solve the issue that I’m facing right now.
2024-01-12T18:41:40Z
Please, if you can make your Space public and create a minimal, reproducible example, thanks