Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,15 +21,15 @@ with gr.Blocks() as demo:
|
|
| 21 |
prompt_input_canny = gr.Textbox(label="Prompt")
|
| 22 |
negative_prompt_canny = gr.Textbox(label="Negative Prompt")
|
| 23 |
canny_input = gr.Image(label="Image")
|
| 24 |
-
submit_btn = gr.Button("Submit")
|
| 25 |
canny_inputs = [prompt_input_canny, negative_prompt_canny, canny_input]
|
| 26 |
-
submit_btn.click(fn=infer_canny, inputs=canny_inputs, outputs="image")
|
| 27 |
with gr.Tab("ControlNet with Semantic Segmentation"):
|
| 28 |
prompt_input_seg = gr.Textbox(label="Prompt")
|
| 29 |
negative_prompt_seg = gr.Textbox(label="Negative Prompt")
|
| 30 |
seg_input = gr.Image(label="Image")
|
| 31 |
-
submit_btn = gr.Button("Submit")
|
| 32 |
seg_inputs = [prompt_input_seg, negative_prompt_seg, seg_input]
|
| 33 |
-
submit_btn.click(fn=infer_segmentation, inputs=seg_inputs, outputs="image")
|
| 34 |
|
| 35 |
demo.launch()
|
|
|
|
| 21 |
prompt_input_canny = gr.Textbox(label="Prompt")
|
| 22 |
negative_prompt_canny = gr.Textbox(label="Negative Prompt")
|
| 23 |
canny_input = gr.Image(label="Image")
|
| 24 |
+
submit_btn = gr.Button(value = "Submit")
|
| 25 |
canny_inputs = [prompt_input_canny, negative_prompt_canny, canny_input]
|
| 26 |
+
submit_btn.click(fn=infer_canny, inputs=canny_inputs, outputs=["image"])
|
| 27 |
with gr.Tab("ControlNet with Semantic Segmentation"):
|
| 28 |
prompt_input_seg = gr.Textbox(label="Prompt")
|
| 29 |
negative_prompt_seg = gr.Textbox(label="Negative Prompt")
|
| 30 |
seg_input = gr.Image(label="Image")
|
| 31 |
+
submit_btn = gr.Button(value = "Submit")
|
| 32 |
seg_inputs = [prompt_input_seg, negative_prompt_seg, seg_input]
|
| 33 |
+
submit_btn.click(fn=infer_segmentation, inputs=seg_inputs, outputs=["image"])
|
| 34 |
|
| 35 |
demo.launch()
|