Issue loading images

#2
by DrAdie - opened

Hello,

I recently tried to use the tool but I'm getting the following error when I try to upload an image: "AxiosError: Request failed with status code 403". I've attached a screenshot of the error too.

torch-cam_hf_image_load_issue

I'm wondering if this could be looked into. I've currently tried multiple images of different extensions, and waited some days between tries to see if it was temporary.

Thanks!

@frgfm Streamlit should be ran with these options --server.enableCORS=false --server.enableXsrfProtection=false

Ref: https://discuss.streamlit.io/t/file-upload-fails-with-error-request-failed-with-status-code-403/27143/86

@DrAdie https://huggingface.co/spaces/dinhanhx/torch-cam/ you can try my fix here

@DrAdie https://huggingface.co/spaces/dinhanhx/torch-cam/ you can try my fix here

@dinhanhx Excellent! Thank you for this. It appears to be working with your fix.

Sign up or log in to comment