Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -286,7 +286,7 @@ class ControlNetDepthDesignModelMulti:
|
|
286 |
|
287 |
|
288 |
def create_demo(model):
|
289 |
-
gr.Markdown("###
|
290 |
with gr.Row():
|
291 |
with gr.Column():
|
292 |
input_image = gr.Image(label="Input Image", type='pil', elem_id='img-display-input')
|
@@ -353,9 +353,7 @@ def create_demo(model):
|
|
353 |
return out_img, bboxes.tolist()
|
354 |
|
355 |
submit.click(on_submit, inputs=[input_image, input_text, num_steps, guidance_scale, seed, strength, detr_confidence_threshold, a_prompt, n_prompt, img_size], outputs=[design_image, bboxes])
|
356 |
-
|
357 |
-
inputs=[input_image, input_text], cache_examples=False)
|
358 |
-
|
359 |
|
360 |
controlnet_depth= ControlNetModel.from_pretrained(
|
361 |
"controlnet_depth", torch_dtype=dtype, use_safetensors=True)
|
|
|
286 |
|
287 |
|
288 |
def create_demo(model):
|
289 |
+
gr.Markdown("### demo")
|
290 |
with gr.Row():
|
291 |
with gr.Column():
|
292 |
input_image = gr.Image(label="Input Image", type='pil', elem_id='img-display-input')
|
|
|
353 |
return out_img, bboxes.tolist()
|
354 |
|
355 |
submit.click(on_submit, inputs=[input_image, input_text, num_steps, guidance_scale, seed, strength, detr_confidence_threshold, a_prompt, n_prompt, img_size], outputs=[design_image, bboxes])
|
356 |
+
|
|
|
|
|
357 |
|
358 |
controlnet_depth= ControlNetModel.from_pretrained(
|
359 |
"controlnet_depth", torch_dtype=dtype, use_safetensors=True)
|