Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -120,6 +120,8 @@ examples = [
|
|
120 |
],
|
121 |
]
|
122 |
|
|
|
|
|
123 |
|
124 |
def run_for_examples(style_image, source_image, prompt, scale, control_scale):
|
125 |
return create_image(
|
@@ -258,7 +260,7 @@ with block:
|
|
258 |
with gr.Column():
|
259 |
with gr.Row():
|
260 |
# with gr.Column():
|
261 |
-
|
262 |
with gr.Column():
|
263 |
prompt = gr.Textbox(
|
264 |
label="Prompt",
|
|
|
120 |
],
|
121 |
]
|
122 |
|
123 |
+
def segment(input_image):
|
124 |
+
return remove(input_image)
|
125 |
|
126 |
def run_for_examples(style_image, source_image, prompt, scale, control_scale):
|
127 |
return create_image(
|
|
|
260 |
with gr.Column():
|
261 |
with gr.Row():
|
262 |
# with gr.Column():
|
263 |
+
image_pil = gr.Image(label="Style Image", type="pil")
|
264 |
with gr.Column():
|
265 |
prompt = gr.Textbox(
|
266 |
label="Prompt",
|