kfahn commited on
Commit
806402e
1 Parent(s): 466692c

Update app.py

Browse files

simplifying interface

Files changed (1) hide show
  1. app.py +6 -18
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(theme = mytheme) 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
  """)
64
- with gr.Column():
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