Spaces:
Runtime error
Runtime error
Update canvas.py
Browse files
canvas.py
CHANGED
@@ -41,7 +41,7 @@ def placeholder_fn(axis):
|
|
41 |
|
42 |
|
43 |
|
44 |
-
gr.Blocks(
|
45 |
rotation_axis = gr.Radio(choices=["x", "y", "z"], value="x", label="Joint rotation axis")
|
46 |
pose_template = gr.Radio(choices=["regular", "ballet", "handstand", "split", "kick", "chilling"], value="regular", label="Pose template")
|
47 |
run_button = gr.Button("Generate")
|
@@ -61,4 +61,4 @@ gr.Blocks(
|
|
61 |
inputs=[canvas, prompt],
|
62 |
outputs=[gallery],
|
63 |
_js=get_js_image)
|
64 |
-
|
|
|
41 |
|
42 |
|
43 |
|
44 |
+
with gr.Blocks() as b:
|
45 |
rotation_axis = gr.Radio(choices=["x", "y", "z"], value="x", label="Joint rotation axis")
|
46 |
pose_template = gr.Radio(choices=["regular", "ballet", "handstand", "split", "kick", "chilling"], value="regular", label="Pose template")
|
47 |
run_button = gr.Button("Generate")
|
|
|
61 |
inputs=[canvas, prompt],
|
62 |
outputs=[gallery],
|
63 |
_js=get_js_image)
|
64 |
+
b.load()
|