kevinwang676
commited on
Commit
•
d84c41e
1
Parent(s):
f508332
Update app_canny.py
Browse files- app_canny.py +2 -3
app_canny.py
CHANGED
@@ -8,7 +8,6 @@ from settings import (
|
|
8 |
MAX_IMAGE_RESOLUTION,
|
9 |
MAX_NUM_IMAGES,
|
10 |
MAX_SEED,
|
11 |
-
out1,
|
12 |
)
|
13 |
from utils import randomize_seed_fn
|
14 |
|
@@ -16,7 +15,7 @@ def create_demo(process):
|
|
16 |
with gr.Blocks() as demo:
|
17 |
with gr.Row():
|
18 |
with gr.Column():
|
19 |
-
|
20 |
prompt = gr.Textbox(label="Image Prompt")
|
21 |
run_button = gr.Button("Generate")
|
22 |
with gr.Accordion("Advanced options", open=False):
|
@@ -48,7 +47,7 @@ def create_demo(process):
|
|
48 |
with gr.Column():
|
49 |
result = gr.Gallery(label="Output", show_label=False, columns=2, object_fit="scale-down")
|
50 |
inputs = [
|
51 |
-
|
52 |
prompt,
|
53 |
a_prompt,
|
54 |
n_prompt,
|
|
|
8 |
MAX_IMAGE_RESOLUTION,
|
9 |
MAX_NUM_IMAGES,
|
10 |
MAX_SEED,
|
|
|
11 |
)
|
12 |
from utils import randomize_seed_fn
|
13 |
|
|
|
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 |
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,
|