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

Update app.py

Browse files

trouble-shooting

Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -8,15 +8,15 @@ 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
 
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>'
@@ -77,7 +77,8 @@ with gr.Blocks(theme='kfahn/AnimalPose') as demo:
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():
 
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>'
 
77
  """)
78
  with gr.Column():
79
  with gr.Row():
80
+ #keypoint_tool = addp5sketch(sketch_url)
81
+ keypoint_tool = gr.HTML(lines)
82
  with gr.Row():
83
  prompts = gr.Textbox(label="Prompt")
84
  with gr.Row():