Update app.py
Browse filessimplifying interface
app.py
CHANGED
|
@@ -55,33 +55,21 @@ def infer(prompts, negative_prompts, image):
|
|
| 55 |
mytheme = gr.themes.Default(primary_hue="slate")
|
| 56 |
#control_image = "https://huggingface.co/spaces/kfahn/Animal_Pose_Control_Net/blob/main/image_control.png"
|
| 57 |
|
| 58 |
-
with gr.Blocks(
|
| 59 |
gr.Markdown(
|
| 60 |
"""
|
| 61 |
# Animal Pose Control Net
|
| 62 |
## This is a demo of Animal Pose ControlNet, which is a model trained on runwayml/stable-diffusion-v1-5 with new type of conditioning.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
""")
|
| 64 |
-
|
| 65 |
prompts = gr.Textbox(label="Prompt")
|
| 66 |
negative_prompts = gr.Textbox(label="Negative Prompt")
|
| 67 |
image = gr.Image()
|
| 68 |
|
| 69 |
-
with gr.Column():
|
| 70 |
-
#with gr.Row():
|
| 71 |
-
# explain = gr.Textbox("Keypoint Tool: Use mouse to move joints")
|
| 72 |
-
with gr.Row():
|
| 73 |
-
keypoint_tool = gr.HTML(lines)
|
| 74 |
-
|
| 75 |
-
gr.Markdown(
|
| 76 |
-
"""
|
| 77 |
-
* [Dataset](https://huggingface.co/datasets/JFoz/dog-poses-controlnet-dataset)
|
| 78 |
-
* [Diffusers model](), [Web UI model](https://huggingface.co/JFoz/dog-pose)
|
| 79 |
-
* [Training Report](https://wandb.ai/john-fozard/dog-cat-pose/runs/kmwcvae5)
|
| 80 |
-
""")
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
#gr.Interface(fn=infer, inputs = ["text", "text", "image"], outputs = "gallery",
|
| 86 |
# examples=[["a Labrador crossing the road", "low quality", control_image]])
|
| 87 |
|
|
|
|
| 55 |
mytheme = gr.themes.Default(primary_hue="slate")
|
| 56 |
#control_image = "https://huggingface.co/spaces/kfahn/Animal_Pose_Control_Net/blob/main/image_control.png"
|
| 57 |
|
| 58 |
+
with gr.Blocks(css = ".gradio-container {background-color: slate}") as demo:
|
| 59 |
gr.Markdown(
|
| 60 |
"""
|
| 61 |
# Animal Pose Control Net
|
| 62 |
## This is a demo of Animal Pose ControlNet, which is a model trained on runwayml/stable-diffusion-v1-5 with new type of conditioning.
|
| 63 |
+
[Dataset](https://huggingface.co/datasets/JFoz/dog-poses-controlnet-dataset)
|
| 64 |
+
[Diffusers model](https://huggingface.co/JFoz/dog-pose)
|
| 65 |
+
[Github](https://github.com/fi4cr/animalpose)
|
| 66 |
+
[Training Report](https://wandb.ai/john-fozard/dog-cat-pose/runs/kmwcvae5)
|
| 67 |
""")
|
| 68 |
+
keypoint_tool = gr.HTML(lines)
|
| 69 |
prompts = gr.Textbox(label="Prompt")
|
| 70 |
negative_prompts = gr.Textbox(label="Negative Prompt")
|
| 71 |
image = gr.Image()
|
| 72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
#gr.Interface(fn=infer, inputs = ["text", "text", "image"], outputs = "gallery",
|
| 74 |
# examples=[["a Labrador crossing the road", "low quality", control_image]])
|
| 75 |
|