tnwei/vqgan-clip-app

gallery.py is using '\' for web paths and http requests, and not '/'

HStep20 opened this issue · 2 comments

Currently up and running on Windows 10. All of the HTTP links to images have their slashes messed up, causing image links to be broken in the gallery.

Example: http://127.0.0.1:5000/output%5C20211016T174934-doCAwi8J%5Coutput.PNG

Interestingly, when the link is copy and pasted, the '' turn into '%5'

tnwei commented

Hi, thanks for raising this issue, I've been able to replicate it on Windows as well (usually use Linux).

tnwei commented

Looks like the use of pathlib in gallery_utils.py causes the URLs to resolve in the style of Windows' UNCs. Enforced them to render as POSIX paths, should be addressed now.