Spaces:
Runtime error
Runtime error
Update
Browse files
app.py
CHANGED
@@ -130,18 +130,19 @@ with gr.Blocks() as demo:
|
|
130 |
gr.Markdown(DESCRIPTION)
|
131 |
with gr.Row():
|
132 |
with gr.Column():
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
|
|
145 |
with gr.Accordion("Advanced options", open=False):
|
146 |
style = gr.Dropdown(choices=style_names, value=default_style, label="Style")
|
147 |
negative_prompt = gr.Textbox(label="Negative prompt", value="")
|
|
|
130 |
gr.Markdown(DESCRIPTION)
|
131 |
with gr.Row():
|
132 |
with gr.Column():
|
133 |
+
with gr.Group():
|
134 |
+
image = gr.Image(
|
135 |
+
source="canvas",
|
136 |
+
tool="sketch",
|
137 |
+
type="pil",
|
138 |
+
image_mode="1",
|
139 |
+
invert_colors=True,
|
140 |
+
shape=(1024, 1024),
|
141 |
+
brush_radius=4,
|
142 |
+
height=600,
|
143 |
+
)
|
144 |
+
prompt = gr.Textbox(label="Prompt")
|
145 |
+
run_button = gr.Button("Run")
|
146 |
with gr.Accordion("Advanced options", open=False):
|
147 |
style = gr.Dropdown(choices=style_names, value=default_style, label="Style")
|
148 |
negative_prompt = gr.Textbox(label="Negative prompt", value="")
|