josephrocca / OpenCharacters

Simple little web interface for creating characters and chatting with them. It's basically a single HTML file - no server. Share characters using a link (character data is stored within the URL itself). All chat data is stored in your browser using IndexedDB. Currently supports OpenAI APIs and ~any Hugging Face model.
https://josephrocca.github.io/OpenCharacters
MIT License
364 stars 60 forks source link

Pictures not loading on mobile or computer #25

Closed gg5150 closed 1 year ago

gg5150 commented 1 year ago

I used the code to make my characters show ‘facial expressions’ or pictures but instead of showing the picture it just shows a black square with a blue question mark on my phone, and just the text for the emotion on my computer. I can’t ever see the picture. Would anyone happen to know what is going on here?

josephrocca commented 1 year ago

@gg5150 Did you upload your images to https://imgur.com/upload? And then wait for the image to fully upload, and right-click on it and copy the URL. The URL that you copy should start with https:// and end with .jpg or .png etc.

I'd recommend against using anything other than imgur

josephrocca commented 1 year ago

@gg5150 If you are already using Imgur, then, question: Are you using josephrocca.github.io/OpenCharacters or running your own local webserver? If you're using a local web server, you need to use localhost in the URL rather than 127.0.0.1 to get imgur images to load properly, as explained here - weird bug with Imgur's referrer header handling.

josephrocca commented 1 year ago

Closed due to no response