Update app.py
Browse files
app.py
CHANGED
|
@@ -63,7 +63,7 @@ description="Make AI generated Minecraft Skins by a Finetuned Stable Diffusion V
|
|
| 63 |
with gr.Blocks() as demo:
|
| 64 |
gr.Markdown(title)
|
| 65 |
gr.Markdown(description)
|
| 66 |
-
with gr.Column() as
|
| 67 |
inputs=[
|
| 68 |
prompt,
|
| 69 |
stable_diffusion_model,
|
|
@@ -75,19 +75,22 @@ with gr.Blocks() as demo:
|
|
| 75 |
verbose,
|
| 76 |
see_in_3d
|
| 77 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
| 78 |
with gr.Column() as outputs:
|
| 79 |
outputs=[
|
| 80 |
gr.Image(label="Generated Minecraft Skin Image Asset"),
|
| 81 |
gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], label="3D Model")
|
| 82 |
]
|
| 83 |
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
|
| 92 |
|
| 93 |
|
|
|
|
| 63 |
with gr.Blocks() as demo:
|
| 64 |
gr.Markdown(title)
|
| 65 |
gr.Markdown(description)
|
| 66 |
+
with gr.Column() as inference:
|
| 67 |
inputs=[
|
| 68 |
prompt,
|
| 69 |
stable_diffusion_model,
|
|
|
|
| 75 |
verbose,
|
| 76 |
see_in_3d
|
| 77 |
]
|
| 78 |
+
|
| 79 |
+
submit_btn = gr.Button("Submit")
|
| 80 |
+
|
| 81 |
+
|
| 82 |
with gr.Column() as outputs:
|
| 83 |
outputs=[
|
| 84 |
gr.Image(label="Generated Minecraft Skin Image Asset"),
|
| 85 |
gr.Model3D(clear_color=[0.0, 0.0, 0.0, 0.0], label="3D Model")
|
| 86 |
]
|
| 87 |
|
| 88 |
+
|
| 89 |
+
submit_btn.click(
|
| 90 |
+
run_inference,
|
| 91 |
+
inputs,
|
| 92 |
+
outputs,
|
| 93 |
+
)
|
|
|
|
| 94 |
|
| 95 |
|
| 96 |
|