layout
Browse files
app.py
CHANGED
@@ -217,9 +217,7 @@ def predict_examples(
|
|
217 |
|
218 |
|
219 |
css = """
|
220 |
-
.gradio-container{
|
221 |
-
max-width: 85rem !important;
|
222 |
-
}
|
223 |
"""
|
224 |
with gr.Blocks(css=css) as blocks:
|
225 |
gr.Markdown("""# LayerDiffuse (unofficial)
|
@@ -300,17 +298,23 @@ with gr.Blocks(css=css) as blocks:
|
|
300 |
denoise,
|
301 |
]
|
302 |
outputs = [image, mask, curr_seed]
|
|
|
303 |
|
304 |
gr.Examples(
|
305 |
fn=predict_examples,
|
306 |
examples=examples,
|
307 |
-
inputs=[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
308 |
outputs=outputs,
|
309 |
cache_examples=True,
|
310 |
)
|
311 |
|
312 |
-
button.click(fn=predict, inputs=inputs, outputs=outputs)
|
313 |
-
|
314 |
|
315 |
if __name__ == "__main__":
|
316 |
blocks.launch()
|
|
|
217 |
|
218 |
|
219 |
css = """
|
220 |
+
.gradio-container { max-width: 70rem !important; }
|
|
|
|
|
221 |
"""
|
222 |
with gr.Blocks(css=css) as blocks:
|
223 |
gr.Markdown("""# LayerDiffuse (unofficial)
|
|
|
298 |
denoise,
|
299 |
]
|
300 |
outputs = [image, mask, curr_seed]
|
301 |
+
button.click(fn=predict, inputs=inputs, outputs=outputs)
|
302 |
|
303 |
gr.Examples(
|
304 |
fn=predict_examples,
|
305 |
examples=examples,
|
306 |
+
inputs=[
|
307 |
+
prompt,
|
308 |
+
negative_prompt,
|
309 |
+
input_image,
|
310 |
+
remove_bg,
|
311 |
+
cond_mode,
|
312 |
+
seed,
|
313 |
+
],
|
314 |
outputs=outputs,
|
315 |
cache_examples=True,
|
316 |
)
|
317 |
|
|
|
|
|
318 |
|
319 |
if __name__ == "__main__":
|
320 |
blocks.launch()
|