kfahn commited on
Commit
9dedaff
·
1 Parent(s): 641777b

Update app.py

Browse files

try changing variable names

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -19,8 +19,8 @@ def wandb_report(url):
19
  iframe = f'<iframe src ={url} style="border:none;height:1024px;width:100%"/frame>'
20
  return gr.HTML(iframe)
21
 
22
- title = 'Animal Pose Control Net'
23
- description = 'This is a demo of Animal Pose ControlNet, which is a model trained on runwayml/stable-diffusion-v1-5 with new type of conditioning.'
24
 
25
  report_url = 'https://wandb.ai/john-fozard/dog-cat-pose/runs/kmwcvae5'
26
  sketch_url = 'https://editor.p5js.org/kfahn/full/Ntzq9HWhx'
@@ -89,7 +89,7 @@ with gr.Blocks(theme='kfahn/AnimalPose') as demo:
89
  [Training Report](https://wandb.ai/john-fozard/dog-cat-pose/runs/kmwcvae5)
90
  """)
91
 
92
- run_btn.click(fn=infer, title = title, description = description, inputs = [prompts, negative_prompts, conditioning_image], outputs = output)
93
 
94
  #gr.Interface(fn=infer, inputs = ["text", "text", "image"], outputs = output,
95
  #examples=[["a Labrador crossing the road", "low quality", "myimage.jpg"]])
 
19
  iframe = f'<iframe src ={url} style="border:none;height:1024px;width:100%"/frame>'
20
  return gr.HTML(iframe)
21
 
22
+ mytitle = 'Animal Pose Control Net'
23
+ mydescription = 'This is a demo of Animal Pose ControlNet, which is a model trained on runwayml/stable-diffusion-v1-5 with new type of conditioning.'
24
 
25
  report_url = 'https://wandb.ai/john-fozard/dog-cat-pose/runs/kmwcvae5'
26
  sketch_url = 'https://editor.p5js.org/kfahn/full/Ntzq9HWhx'
 
89
  [Training Report](https://wandb.ai/john-fozard/dog-cat-pose/runs/kmwcvae5)
90
  """)
91
 
92
+ run_btn.click(fn=infer, title = mytitle, description = mydescription, inputs = [prompts, negative_prompts, conditioning_image], outputs = output)
93
 
94
  #gr.Interface(fn=infer, inputs = ["text", "text", "image"], outputs = output,
95
  #examples=[["a Labrador crossing the road", "low quality", "myimage.jpg"]])