kfahn commited on
Commit
087b403
β€’
1 Parent(s): d1b0b6b

Update app.py

Browse files

Update background color and description

Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -66,14 +66,15 @@ def infer(prompts, negative_prompts, image):
66
  output=np.array(output, dtype=np.float32)
67
  return output
68
 
69
- with gr.Blocks(theme='kfahn/AnimalPose') as demo:
70
  gr.Markdown(
71
  """
72
  <h1 style="text-align: center;">
73
- Animal Pose Control Net
74
  </h1>
75
-
76
- <h3 style="text-align: center;"> This is a demo of Animal Pose ControlNet, which is a model trained on runwayml/stable-diffusion-v1-5 with new type of conditioning.
 
77
  </h3>
78
  """)
79
  with gr.Row():
@@ -82,7 +83,7 @@ with gr.Blocks(theme='kfahn/AnimalPose') as demo:
82
  negative_prompts = gr.Textbox(label="Negative Prompt", value="lowres, two heads, bad muzzle, bad anatomy, missing ears, missing paws")
83
  conditioning_image = gr.Image(label="Conditioning Image")
84
  run_btn = gr.Button("Run")
85
- wandb = wandb_report(report_url)
86
  with gr.Column():
87
  keypoint_tool = addp5sketch(sketch_url)
88
  output = gr.Image(
@@ -93,7 +94,7 @@ with gr.Blocks(theme='kfahn/AnimalPose') as demo:
93
  [Dataset](https://huggingface.co/datasets/JFoz/dog-poses-controlnet-dataset)
94
  [Diffusers model](https://huggingface.co/JFoz/dog-pose)
95
  [Github](https://github.com/fi4cr/animalpose)
96
- [Training Report](https://wandb.ai/john-fozard/dog-cat-pose/runs/kmwcvae5)
97
  """)
98
 
99
  run_btn.click(fn=infer, inputs = [prompts, negative_prompts, conditioning_image], outputs = output)
 
66
  output=np.array(output, dtype=np.float32)
67
  return output
68
 
69
+ with gr.Blocks(css=".gradio-container {background-color: #45f10c};") as demo:
70
  gr.Markdown(
71
  """
72
  <h1 style="text-align: center;">
73
+ πŸ• Animal Pose Control Net 🐈
74
  </h1>
75
+ <h3 style="text-align: left;"> This is a demo of Animal Pose ControlNet, which is a model trained on runwayml/stable-diffusion-v1-5 with a new type of conditioning.</h3>
76
+ <h3 style="text-align: left;"> While this is definitely a work in progress, you can still try it out by using the p5 sketch to create a keypoint image and using it as the conditioning image.</h3>
77
+ <h3 style="text-align: left;"> The model was generated as part of the Hugging Face Jax Diffusers sprint. Thank you to both Hugging Face and Google Cloud who provided the TPUs for training!
78
  </h3>
79
  """)
80
  with gr.Row():
 
83
  negative_prompts = gr.Textbox(label="Negative Prompt", value="lowres, two heads, bad muzzle, bad anatomy, missing ears, missing paws")
84
  conditioning_image = gr.Image(label="Conditioning Image")
85
  run_btn = gr.Button("Run")
86
+ #wandb = wandb_report(report_url)
87
  with gr.Column():
88
  keypoint_tool = addp5sketch(sketch_url)
89
  output = gr.Image(
 
94
  [Dataset](https://huggingface.co/datasets/JFoz/dog-poses-controlnet-dataset)
95
  [Diffusers model](https://huggingface.co/JFoz/dog-pose)
96
  [Github](https://github.com/fi4cr/animalpose)
97
+ [WANDB Training Report](https://wandb.ai/john-fozard/dog-cat-pose/runs/kmwcvae5)
98
  """)
99
 
100
  run_btn.click(fn=infer, inputs = [prompts, negative_prompts, conditioning_image], outputs = output)