Spaces:
Runtime error
Runtime error
Update app.py
Browse fileschange name of button to submit
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>'
|
@@ -83,7 +83,7 @@ with gr.Blocks(theme='kfahn/AnimalPose') as demo:
|
|
83 |
#keypoint_tool = addp5sketch(sketch_url)
|
84 |
keypoint_tool = gr.HTML(lines)
|
85 |
|
86 |
-
submit_btn = gr.Button(
|
87 |
submit_btn.click(fn=infer, inputs = ["text", "text", "image"], outputs = "gallery")
|
88 |
#examples=[["a Labrador crossing the road", "low quality", "myimage.jpg"]])
|
89 |
|
|
|
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>'
|
|
|
83 |
#keypoint_tool = addp5sketch(sketch_url)
|
84 |
keypoint_tool = gr.HTML(lines)
|
85 |
|
86 |
+
submit_btn = gr.Button("Submit")
|
87 |
submit_btn.click(fn=infer, inputs = ["text", "text", "image"], outputs = "gallery")
|
88 |
#examples=[["a Labrador crossing the road", "low quality", "myimage.jpg"]])
|
89 |
|