Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -578,7 +578,8 @@ def canny_process_image(input_image, input_low_threshold, input_high_threshold,
|
|
| 578 |
return np.array(canny_2)
|
| 579 |
|
| 580 |
# Define the input and output interfaces
|
| 581 |
-
canny_input_image = gr.inputs.Image()
|
|
|
|
| 582 |
canny_input_low_threshold = gr.inputs.Slider(minimum=0, maximum=1000, step=1, label="Lower Threshold:", default=100)
|
| 583 |
canny_input_high_threshold = gr.inputs.Slider(minimum=0, maximum=1000, step=1, label="Upper Threshold:", default=200)
|
| 584 |
canny_input_invert = gr.inputs.Checkbox(label="Invert Image")
|
|
@@ -716,7 +717,8 @@ with gr.Blocks() as canny_blocks_interface:
|
|
| 716 |
canny_input_invert = gr.inputs.Checkbox(label="invert edge tracing image")
|
| 717 |
canny_input_rotate = gr.Dropdown([0, 90, 180, 270], label="rotate image (for smartphones)")
|
| 718 |
with gr.Column():
|
| 719 |
-
canny_input_image = gr.inputs.Image(label="input image")
|
|
|
|
| 720 |
go_button = gr.Button('generate image')
|
| 721 |
# with gr.Row():
|
| 722 |
with gr.Accordion(label='traced edge image', open=False):
|
|
@@ -931,7 +933,8 @@ with gr.Blocks() as depth_controlnet_gradio:
|
|
| 931 |
## Inputs...
|
| 932 |
''')
|
| 933 |
input_prompt = gr.inputs.Textbox(label="text prompt")
|
| 934 |
-
input_image = gr.inputs.Image(label="input image")
|
|
|
|
| 935 |
with gr.Accordion(label="options", open=False):
|
| 936 |
with gr.Row():
|
| 937 |
with gr.Column():
|
|
|
|
| 578 |
return np.array(canny_2)
|
| 579 |
|
| 580 |
# Define the input and output interfaces
|
| 581 |
+
# canny_input_image = gr.inputs.Image()
|
| 582 |
+
canny_input_image = gr.Image()
|
| 583 |
canny_input_low_threshold = gr.inputs.Slider(minimum=0, maximum=1000, step=1, label="Lower Threshold:", default=100)
|
| 584 |
canny_input_high_threshold = gr.inputs.Slider(minimum=0, maximum=1000, step=1, label="Upper Threshold:", default=200)
|
| 585 |
canny_input_invert = gr.inputs.Checkbox(label="Invert Image")
|
|
|
|
| 717 |
canny_input_invert = gr.inputs.Checkbox(label="invert edge tracing image")
|
| 718 |
canny_input_rotate = gr.Dropdown([0, 90, 180, 270], label="rotate image (for smartphones)")
|
| 719 |
with gr.Column():
|
| 720 |
+
# canny_input_image = gr.inputs.Image(label="input image")
|
| 721 |
+
canny_input_image = gr.Image(label="input image")
|
| 722 |
go_button = gr.Button('generate image')
|
| 723 |
# with gr.Row():
|
| 724 |
with gr.Accordion(label='traced edge image', open=False):
|
|
|
|
| 933 |
## Inputs...
|
| 934 |
''')
|
| 935 |
input_prompt = gr.inputs.Textbox(label="text prompt")
|
| 936 |
+
# input_image = gr.inputs.Image(label="input image")
|
| 937 |
+
input_image = gr.Image(label="input image")
|
| 938 |
with gr.Accordion(label="options", open=False):
|
| 939 |
with gr.Row():
|
| 940 |
with gr.Column():
|