kevinwang676 commited on
Commit
2a66b35
1 Parent(s): d84c41e

Update app_canny.py

Browse files
Files changed (1) hide show
  1. app_canny.py +2 -2
app_canny.py CHANGED
@@ -15,7 +15,7 @@ def create_demo(process):
15
  with gr.Blocks() as demo:
16
  with gr.Row():
17
  with gr.Column():
18
- out1 = gr.Image(label="Output Image", type="pil", interactive=True) #gr.Image()
19
  prompt = gr.Textbox(label="Image Prompt")
20
  run_button = gr.Button("Generate")
21
  with gr.Accordion("Advanced options", open=False):
@@ -47,7 +47,7 @@ def create_demo(process):
47
  with gr.Column():
48
  result = gr.Gallery(label="Output", show_label=False, columns=2, object_fit="scale-down")
49
  inputs = [
50
- out1,
51
  prompt,
52
  a_prompt,
53
  n_prompt,
 
15
  with gr.Blocks() as demo:
16
  with gr.Row():
17
  with gr.Column():
18
+ image = gr.Image()
19
  prompt = gr.Textbox(label="Image Prompt")
20
  run_button = gr.Button("Generate")
21
  with gr.Accordion("Advanced options", open=False):
 
47
  with gr.Column():
48
  result = gr.Gallery(label="Output", show_label=False, columns=2, object_fit="scale-down")
49
  inputs = [
50
+ image,
51
  prompt,
52
  a_prompt,
53
  n_prompt,