Spaces:
Runtime error
Runtime error
API name
Browse files
app.py
CHANGED
@@ -109,9 +109,10 @@ with gr.Blocks(css=css) as demo:
|
|
109 |
|
110 |
|
111 |
submit_canny_btn.click(
|
112 |
-
fn
|
113 |
-
inputs
|
114 |
-
outputs
|
|
|
115 |
show_api=False
|
116 |
)
|
117 |
|
|
|
109 |
|
110 |
|
111 |
submit_canny_btn.click(
|
112 |
+
fn=infer,
|
113 |
+
inputs=[image_in, prompt, inference_steps, guidance_scale, control_weight],
|
114 |
+
outputs=[result, canny_used],
|
115 |
+
api_name="predict",
|
116 |
show_api=False
|
117 |
)
|
118 |
|