Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ OUTPUT_DIR = Path("output_minecraft_skins")
|
|
| 14 |
print(f"Using: {DEVICE}")
|
| 15 |
|
| 16 |
# Repo URL
|
| 17 |
-
REPO_URL = "https://github.com/
|
| 18 |
REPO_NAME = "Minecraft_Skin_Generator"
|
| 19 |
REPO_PATH = Path(REPO_NAME)
|
| 20 |
|
|
@@ -122,7 +122,7 @@ def create_gradio_ui():
|
|
| 122 |
"""Defines and returns the Gradio UI components."""
|
| 123 |
with gr.Blocks(title="Minecraft Skin Generator", css=".pixelated {image-rendering: pixelated} .checkered img {background-image: url(\'data:image/svg+xml,<svg xmlns=\'http://www.w3.org/2000/svg\' width=\'2\' height=\'2\' fill-opacity=\'.15\'><rect x=\'1\' width=\'1\' height=\'1\'/><rect y=\'1\' width=\'1\' height=\'1\'/></svg>\');background-size: 16px;}") as imsteve:
|
| 124 |
gr.Label("Minecraft Skin Generator")
|
| 125 |
-
gr.Markdown("Make AI generated Minecraft Skins by a Finetuned Stable Diffusion Version!<br
|
| 126 |
|
| 127 |
with gr.Row():
|
| 128 |
prompt = gr.Textbox(label="Your Prompt", info="What the Minecraft Skin should look like")
|
|
@@ -175,7 +175,7 @@ def main():
|
|
| 175 |
demo = create_gradio_ui()
|
| 176 |
|
| 177 |
setup_repository()
|
| 178 |
-
demo.launch(show_api=
|
| 179 |
|
| 180 |
if __name__ == "__main__":
|
| 181 |
main()
|
|
|
|
| 14 |
print(f"Using: {DEVICE}")
|
| 15 |
|
| 16 |
# Repo URL
|
| 17 |
+
REPO_URL = "https://github.com/BF667/Minecraft_Skin_Generator.git"
|
| 18 |
REPO_NAME = "Minecraft_Skin_Generator"
|
| 19 |
REPO_PATH = Path(REPO_NAME)
|
| 20 |
|
|
|
|
| 122 |
"""Defines and returns the Gradio UI components."""
|
| 123 |
with gr.Blocks(title="Minecraft Skin Generator", css=".pixelated {image-rendering: pixelated} .checkered img {background-image: url(\'data:image/svg+xml,<svg xmlns=\'http://www.w3.org/2000/svg\' width=\'2\' height=\'2\' fill-opacity=\'.15\'><rect x=\'1\' width=\'1\' height=\'1\'/><rect y=\'1\' width=\'1\' height=\'1\'/></svg>\');background-size: 16px;}") as imsteve:
|
| 124 |
gr.Label("Minecraft Skin Generator")
|
| 125 |
+
gr.Markdown("Make AI generated Minecraft Skins by a Finetuned Stable Diffusion Version!<br>\nGithub Repository & Model used: https://github.com/Nick088Official/Minecraft_Skin_Generator<br>\nCredits: [Monadical-SAS](https://github.com/Monadical-SAS/minecraft_skin_generator)\n (Creators of the model), [Nick088](https://linktr.ee/Nick088) (Improving usage of the model)\n daroche (helping fix the 3d model texture isue)\n [Brottweiler](https://gist.github.com/Brottweiler/483d0856c6692ef70cf90bf1a85ce364)(script to fix the 3d model texture)\n [not-holar](https://huggingface.co/not-holar) (made the rendering of the image asset in the web ui look pixelated like minecraft and have a checkered background)\n[meew](https://huggingface.co/spaces/meeww/Minecraft_Skin_Generator/blob/main/models/player_model.glb) (Minecraft Player 3d model) <br>\n [](https://discord.gg/AQsmBmgEPy)")
|
| 126 |
|
| 127 |
with gr.Row():
|
| 128 |
prompt = gr.Textbox(label="Your Prompt", info="What the Minecraft Skin should look like")
|
|
|
|
| 175 |
demo = create_gradio_ui()
|
| 176 |
|
| 177 |
setup_repository()
|
| 178 |
+
demo.launch(show_api=True, share=True)
|
| 179 |
|
| 180 |
if __name__ == "__main__":
|
| 181 |
main()
|