kfahn commited on
Commit
430340e
1 Parent(s): 280a8d0

Update app.py

Browse files

switch to add sketch function

Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -14,9 +14,9 @@ with open("test.html") as f:
14
  def create_key(seed=0):
15
  return jax.random.PRNGKey(seed)
16
 
17
- #def addp5sketch(url):
18
- # iframe = f'<iframe src ={url} style="border:none;height:525px;width:100%"/frame>'
19
- # return gr.HTML(iframe)
20
 
21
  def wandb_report(url):
22
  iframe = f'<iframe src ={url} style="border:none;height:1024px;width:100%"/frame>'
@@ -80,8 +80,8 @@ with gr.Blocks(theme='kfahn/AnimalPose') as demo:
80
  conditioning_image = gr.Image(label="Conditioning Image")
81
  run_btn = gr.Button("Run")
82
  with gr.Column():
83
- #keypoint_tool = addp5sketch(sketch_url)
84
- keypoint_tool = gr.HTML(lines)
85
  output = gr.Image(
86
  label="Result",
87
  )
 
14
  def create_key(seed=0):
15
  return jax.random.PRNGKey(seed)
16
 
17
+ def addp5sketch(url):
18
+ iframe = f'<iframe src ={url} style="border:none;height:525px;width:100%"/frame>'
19
+ return gr.HTML(iframe)
20
 
21
  def wandb_report(url):
22
  iframe = f'<iframe src ={url} style="border:none;height:1024px;width:100%"/frame>'
 
80
  conditioning_image = gr.Image(label="Conditioning Image")
81
  run_btn = gr.Button("Run")
82
  with gr.Column():
83
+ keypoint_tool = addp5sketch(sketch_url)
84
+ #keypoint_tool = gr.HTML(lines)
85
  output = gr.Image(
86
  label="Result",
87
  )