kfahn commited on
Commit
125cff5
1 Parent(s): a761e0b

Update app.py

Browse files

trying to trouble shoot

Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -53,7 +53,7 @@ def infer(prompts, negative_prompts, image):
53
  return output_images
54
 
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(
@@ -62,14 +62,13 @@ with gr.Blocks(theme = mytheme) as demo:
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
- with gr.Row():
66
  pos_prompts = gr.Textbox(label="Prompt")
67
  neg_prompts = gr.Textbox(label="Negative Prompt")
68
  image = gr.Image()
69
 
70
  with gr.Column():
71
- with gr.Row():
72
- explain = gr.Textbox("Keypoint Tool: Use mouse to move joints")
73
  with gr.Row():
74
  keypoint_tool = gr.HTML(lines)
75
 
@@ -80,12 +79,12 @@ gr.Markdown(
80
  * [Training Report](https://wandb.ai/john-fozard/dog-cat-pose/runs/kmwcvae5)
81
  """)
82
 
83
- btn = gr.Button("Run")
84
- #btn.click(inputs = ["text", "text", "image"])
85
 
86
- #btn.click(fn=infer, inputs = ["text", "text", "image"], outputs = "gallery",
 
 
87
  # examples=[["a Labrador crossing the road", "low quality", control_image]])
88
 
89
- btn.click(fn=infer, inputs = ["text", "text", "image"], outputs = "gallery")
90
 
91
  demo.launch()
 
53
  return output_images
54
 
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(
 
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
  pos_prompts = gr.Textbox(label="Prompt")
66
  neg_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
 
 
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
 
88
+ gr.Interface(fn=infer, inputs = ["text", "text", "image"], outputs = "gallery")
89
 
90
  demo.launch()