not-holar commited on
Commit
85ff90d
β€’
1 Parent(s): 3bfa306

Make the skin png preview properly pixelated instead of blurry

Browse files

Before:
![image.png](https://cdn-uploads.huggingface.co/production/uploads/6630f79fc6de281693917dd9/XLxuiEuHarrCnR5GV4S6p.png)

After:
![image.png](https://cdn-uploads.huggingface.co/production/uploads/6630f79fc6de281693917dd9/pB_uTDwFblx0aDtCS-jvO.png)

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -66,9 +66,10 @@ gr.Interface(
66
  verbose
67
  ],
68
  outputs=[
69
- gr.Image(label="Generated Minecraft Skin Image Asset"),
70
  gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], label="3D Model View of the Skin")
71
  ],
72
  title="Minecraft Skin Generator",
73
  description="Make AI generated Minecraft Skins by a Finetuned Stable Diffusion Version!<br>Model used: https://github.com/Nick088Official/Stable_Diffusion_Finetuned_Minecraft_Skin_Generator<br>Credits: [Monadical-SAS](https://github.com/Monadical-SAS/minecraft_skin_generator) (Creators of the model), [Nick088](https://linktr.ee/Nick088) (Improving usage of the model), daroche (helping me fix the 3d model texture isue), [Brottweiler](https://gist.github.com/Brottweiler/483d0856c6692ef70cf90bf1a85ce364)(script to fix the 3d model texture, [meew](https://huggingface.co/spaces/meeww/Minecraft_Skin_Generator/blob/main/models/player_model.glb) (Minecraft Player 3d model)",
 
74
  ).launch(show_api=False, share=True)
 
66
  verbose
67
  ],
68
  outputs=[
69
+ gr.Image(label="Generated Minecraft Skin Image Asset", elem_classes="pixelated"),
70
  gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], label="3D Model View of the Skin")
71
  ],
72
  title="Minecraft Skin Generator",
73
  description="Make AI generated Minecraft Skins by a Finetuned Stable Diffusion Version!<br>Model used: https://github.com/Nick088Official/Stable_Diffusion_Finetuned_Minecraft_Skin_Generator<br>Credits: [Monadical-SAS](https://github.com/Monadical-SAS/minecraft_skin_generator) (Creators of the model), [Nick088](https://linktr.ee/Nick088) (Improving usage of the model), daroche (helping me fix the 3d model texture isue), [Brottweiler](https://gist.github.com/Brottweiler/483d0856c6692ef70cf90bf1a85ce364)(script to fix the 3d model texture, [meew](https://huggingface.co/spaces/meeww/Minecraft_Skin_Generator/blob/main/models/player_model.glb) (Minecraft Player 3d model)",
74
+ css=".pixelated {image-rendering: pixelated}"
75
  ).launch(show_api=False, share=True)