Spaces:
Running
on
Zero
Running
on
Zero
Pierre Chapuis
commited on
use Markdown for title
Browse files- src/app.py +8 -16
src/app.py
CHANGED
|
@@ -103,32 +103,24 @@ def process(
|
|
| 103 |
|
| 104 |
|
| 105 |
TITLE = """
|
| 106 |
-
|
| 107 |
|
| 108 |
-
<p>
|
| 109 |
🧪 An experiment to extend Flux Kontext with product placement capabilities.
|
| 110 |
The LoRA was trained using EditNet, our before / after image editing dataset.
|
| 111 |
-
</p>
|
| 112 |
|
| 113 |
-
<p>
|
| 114 |
Just draw a box to set where the subject should be blended, and at what size.
|
| 115 |
-
</p>
|
| 116 |
|
| 117 |
-
|
| 118 |
-
<em>The reference must be a cutout, i.e. have a transparent background.</em>
|
| 119 |
If you do not have a cutout available you can create one
|
| 120 |
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
<a href="https://blog.finegrain.ai/posts/product-placement-flux-lora-experiment/">Blog Post</a> |
|
| 126 |
-
<a href="https://finegrain.ai/editnet">EditNet</a>
|
| 127 |
-
</p>
|
| 128 |
"""
|
| 129 |
|
| 130 |
with gr.Blocks() as demo:
|
| 131 |
-
gr.
|
| 132 |
with gr.Row():
|
| 133 |
with gr.Column():
|
| 134 |
scene = image_annotator(
|
|
|
|
| 103 |
|
| 104 |
|
| 105 |
TITLE = """
|
| 106 |
+
# Finegrain Product Placement LoRA
|
| 107 |
|
|
|
|
| 108 |
🧪 An experiment to extend Flux Kontext with product placement capabilities.
|
| 109 |
The LoRA was trained using EditNet, our before / after image editing dataset.
|
|
|
|
| 110 |
|
|
|
|
| 111 |
Just draw a box to set where the subject should be blended, and at what size.
|
|
|
|
| 112 |
|
| 113 |
+
*The reference must be a cutout, i.e. have a transparent background.*
|
|
|
|
| 114 |
If you do not have a cutout available you can create one
|
| 115 |
+
[here](https://huggingface.co/spaces/finegrain/finegrain-object-cutter).
|
| 116 |
+
|
| 117 |
+
[Model Card](https://huggingface.co/finegrain/finegrain-product-placement-lora) |
|
| 118 |
+
[Blog Post](https://blog.finegrain.ai/posts/product-placement-flux-lora-experiment/) |
|
| 119 |
+
[EditNet](https://finegrain.ai/editnet)
|
|
|
|
|
|
|
|
|
|
| 120 |
"""
|
| 121 |
|
| 122 |
with gr.Blocks() as demo:
|
| 123 |
+
gr.Markdown(TITLE)
|
| 124 |
with gr.Row():
|
| 125 |
with gr.Column():
|
| 126 |
scene = image_annotator(
|