Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,12 +63,26 @@ output_image_name = gr.Textbox(label="Name of Generated Skin Output", interactiv
|
|
| 63 |
|
| 64 |
verbose = gr.Checkbox(label="Verbose Output", interactive=True, value=False, info="Produce verbose output while running")
|
| 65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
gr.Interface(
|
| 68 |
fn=generate,
|
| 69 |
-
inputs=[prompt, stable_diffusion_model, num_inference_steps, guidance_scale, num_images_per_prompt, model_precision_type, output_image_name,
|
| 70 |
outputs=gr.Image(label="Generated Minecraft Skin"),
|
| 71 |
title="Stable Diffusion Finetuned Minecraft Skin Generator",
|
| 72 |
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>Hugging Face Space made by [Nick088](https://linktr.ee/Nick088)",
|
|
|
|
| 73 |
concurrency_limit=20,
|
| 74 |
).launch(show_api=False)
|
|
|
|
| 63 |
|
| 64 |
verbose = gr.Checkbox(label="Verbose Output", interactive=True, value=False, info="Produce verbose output while running")
|
| 65 |
|
| 66 |
+
examples = [
|
| 67 |
+
[
|
| 68 |
+
"A man in a purple suit wearing a tophat.",
|
| 69 |
+
"xl",
|
| 70 |
+
25,
|
| 71 |
+
7.5,
|
| 72 |
+
1,
|
| 73 |
+
"fp16",
|
| 74 |
+
42,
|
| 75 |
+
"output.png",
|
| 76 |
+
False
|
| 77 |
+
]
|
| 78 |
+
]
|
| 79 |
|
| 80 |
gr.Interface(
|
| 81 |
fn=generate,
|
| 82 |
+
inputs=[prompt, stable_diffusion_model, num_inference_steps, guidance_scale, num_images_per_prompt, model_precision_type, output_image_name, seed, verbose],
|
| 83 |
outputs=gr.Image(label="Generated Minecraft Skin"),
|
| 84 |
title="Stable Diffusion Finetuned Minecraft Skin Generator",
|
| 85 |
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>Hugging Face Space made by [Nick088](https://linktr.ee/Nick088)",
|
| 86 |
+
examples=examples,
|
| 87 |
concurrency_limit=20,
|
| 88 |
).launch(show_api=False)
|