text-generation-webui icon indicating copy to clipboard operation
text-generation-webui copied to clipboard

Character images not showing in gallery or chat

Open Carrott2016 opened this issue 1 year ago • 3 comments

Describe the bug

Character images are visible in Parameters/Character tab, but not under Chat/Gallery and not in the chat itself. Screenshots below. Using the update script of the webUI gave no improvement. The same happens for totally new carachters with different PNG added in the character editor. All good in the editor but not in gallery.

grafik

grafik grafik

Is there an existing issue for this?

  • [X] I have searched the existing issues

Reproduction

Open web ui via the launch script

Screenshot

No response

Logs

No logs, no errors in command line

System Info

Windows10, RTX4080, Intel Core i7-12700K/3.60 GHz

Carrott2016 avatar Jan 16 '24 14:01 Carrott2016

One more addition: right-click on the broken gallery image and selecting "open image in new tab" results in this message:

grafik

Carrott2016 avatar Jan 16 '24 14:01 Carrott2016

Ok, meanwhile I found the reason for the issue, and it is not directly related to the TG-WebUI but to browser security behavior.

Backgound: I wanted to keep some of the session content available between different WebUI installations, so I created Junctions (softlinks) of following directories in WebIU folder: Cache, Characters and Logs. These links point to directories on another locally shared drive.

The links work fine and the WebUI can save and access the data therein, but simply the BROWSER refuses to show it. When I changed this back to use the folders directly within WebUI root directory, it worked fine again.

I have no idea what is the difference for the browser (tested Firefox and Edge), as I use junctions quite often to shift data to other drives for software with hard-coded directories, e.g. to shift data from small C:\ to bigger D:\ drive.

Anyway, if someone has a good explanation for the Browser behavior it would be great to hear! Else the ticket can be closed, as not a Oobabooga issue. I found now a workaround without Junctions for the problem by automatically syncing the files between WebUI folder and the shared drive.

Carrott2016 avatar Jan 21 '24 10:01 Carrott2016

For me the same Problem occurs, but without symlinks/softlinks. When using 'Open Image in New Tab' I also get the response 403 / {"detail":"File not allowed: cache/cache_Example.png.png."} (using Arch Linux)

Schuldkroete avatar Feb 07 '24 07:02 Schuldkroete

This issue has been closed due to inactivity for 2 months. If you believe it is still relevant, please leave a comment below. You can tag a developer in your comment.

github-actions[bot] avatar Apr 07 '24 23:04 github-actions[bot]