Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -94,6 +94,11 @@ def infer_example(input_image, prompt):
|
|
| 94 |
image, seed, _ = infer(input_image, prompt)
|
| 95 |
return image, seed
|
| 96 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 97 |
css="""
|
| 98 |
#col-container {
|
| 99 |
margin: 0 auto;
|
|
@@ -102,11 +107,9 @@ css="""
|
|
| 102 |
"""
|
| 103 |
|
| 104 |
with gr.Blocks(css=css) as demo:
|
| 105 |
-
|
|
|
|
| 106 |
with gr.Column(elem_id="col-container"):
|
| 107 |
-
gr.Markdown(f"""# FLUX.1 Kontext [dev]
|
| 108 |
-
Image editing and manipulation model guidance-distilled from FLUX.1 Kontext [pro], [[blog]](https://bfl.ai/announcements/flux-1-kontext-dev) [[model]](https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev)
|
| 109 |
-
""")
|
| 110 |
with gr.Row():
|
| 111 |
with gr.Column():
|
| 112 |
input_image = gr.Image(label="Upload the image for editing", type="pil")
|
|
|
|
| 94 |
image, seed, _ = infer(input_image, prompt)
|
| 95 |
return image, seed
|
| 96 |
|
| 97 |
+
|
| 98 |
+
title = "# Image to Image AI Editor"
|
| 99 |
+
description = "Your Image-to-Image AI editor. Just describe changes (‘brighter, remove object, cartoon style’) and let the AI handle the rest—no Photoshop skills needed. Try the stable version at [Image to Image AI Generator](https://www.image2image.ai)."
|
| 100 |
+
|
| 101 |
+
|
| 102 |
css="""
|
| 103 |
#col-container {
|
| 104 |
margin: 0 auto;
|
|
|
|
| 107 |
"""
|
| 108 |
|
| 109 |
with gr.Blocks(css=css) as demo:
|
| 110 |
+
gr.Markdown(title)
|
| 111 |
+
gr.Markdown(description)
|
| 112 |
with gr.Column(elem_id="col-container"):
|
|
|
|
|
|
|
|
|
|
| 113 |
with gr.Row():
|
| 114 |
with gr.Column():
|
| 115 |
input_image = gr.Image(label="Upload the image for editing", type="pil")
|