kfahn commited on
Commit
c4964ee
1 Parent(s): bf379ef

Update app.py

Browse files

Adding an addp5sketch function

Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -8,11 +8,16 @@ from PIL import Image
8
  from diffusers import FlaxStableDiffusionControlNetPipeline, FlaxControlNetModel
9
  import cv2
10
 
11
- with open("test.html") as f:
12
- lines = f.readlines()
13
 
14
  def create_key(seed=0):
15
  return jax.random.PRNGKey(seed)
 
 
 
 
 
16
  def wandb_report(url):
17
  iframe = f'<iframe src ={url} style="border:none;height:1024px;width:100%"/frame>'
18
  return gr.HTML(iframe)
@@ -72,7 +77,7 @@ with gr.Blocks(theme='kfahn/AnimalPose') as demo:
72
  """)
73
  with gr.Column():
74
  with gr.Row():
75
- keypoint_tool = gr.HTML(lines)
76
  with gr.Row():
77
  prompts = gr.Textbox(label="Prompt")
78
  with gr.Row():
 
8
  from diffusers import FlaxStableDiffusionControlNetPipeline, FlaxControlNetModel
9
  import cv2
10
 
11
+ #with open("test.html") as f:
12
+ # lines = f.readlines()
13
 
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>'
23
  return gr.HTML(iframe)
 
77
  """)
78
  with gr.Column():
79
  with gr.Row():
80
+ keypoint_tool = addp5sketch(sketch_url)
81
  with gr.Row():
82
  prompts = gr.Textbox(label="Prompt")
83
  with gr.Row():