kramp HF staff commited on
Commit
5abf8d4
1 Parent(s): 7520956

Support PNG images

Browse files

For example, https://huggingface.co/hakurei/waifu-diffusion has a nice png
If it's on purpose, you can close the PR :)

Files changed (1) hide show
  1. index.html +1 -1
index.html CHANGED
@@ -18,7 +18,7 @@
18
  this.models = data.models.map((model) => ({
19
  id: model.id,
20
  likes: model.likes,
21
- images: model.images.filter((image) => image && image.endsWith(".jpg")),
22
  }));
23
 
24
  this.totalPages = data.totalPages;
 
18
  this.models = data.models.map((model) => ({
19
  id: model.id,
20
  likes: model.likes,
21
+ images: model.images.filter((image) => image && (image.endsWith(".jpg") || image.endsWith(".png"))),
22
  }));
23
 
24
  this.totalPages = data.totalPages;