Spaces:
Running
on
Zero
Running
on
Zero
tweak html content
Browse files- src/app.py +33 -44
src/app.py
CHANGED
@@ -178,50 +178,39 @@ def on_change_prompt(img: Image.Image | None, prompt: str | None):
|
|
178 |
|
179 |
|
180 |
TITLE = """
|
181 |
-
<
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
">
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
<
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
</
|
203 |
-
|
204 |
-
<
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
>synthetic data provided by Nfinite</a>.
|
215 |
-
<br>
|
216 |
-
It is powered by Refiners, our open source micro-framework for simple foundation model adaptation.
|
217 |
-
If you enjoyed it, please consider starring Refiners on GitHub!
|
218 |
-
</p>
|
219 |
-
|
220 |
-
<a href="https://github.com/finegrain-ai/refiners" target="_blank">
|
221 |
-
<img src="https://img.shields.io/github/stars/finegrain-ai/refiners?style=social" />
|
222 |
-
</a>
|
223 |
-
|
224 |
-
</center>
|
225 |
"""
|
226 |
|
227 |
with gr.Blocks() as demo:
|
|
|
178 |
|
179 |
|
180 |
TITLE = """
|
181 |
+
<div style="
|
182 |
+
background-color: #f08c00;
|
183 |
+
color: #212529;
|
184 |
+
padding: 0.5rem 1rem;
|
185 |
+
font-size: 1.25rem;
|
186 |
+
" align="center">
|
187 |
+
🥳 We're launching our API! It's way faster and more accurate than this space, so check it out!
|
188 |
+
<a href="https://finegrain.ai/?utm_source=hf&utm_campaign=object-cutter" target="_blank">Try it now for free</a>
|
189 |
+
using our Editor app! 🚀
|
190 |
+
</div>
|
191 |
+
<h1>Finegrain Object Eraser</h1>
|
192 |
+
<p>
|
193 |
+
Create high-quality HD cutouts for any object in your image with just a text prompt — no manual work required!
|
194 |
+
<br>
|
195 |
+
The object will be available on a transparent background, ready to paste elsewhere.
|
196 |
+
</p>
|
197 |
+
<p>
|
198 |
+
This space uses the
|
199 |
+
<a
|
200 |
+
href="https://huggingface.co/finegrain/finegrain-box-segmenter"
|
201 |
+
target="_blank"
|
202 |
+
>Finegrain Box Segmenter model</a>,
|
203 |
+
trained with a mix of natural data curated by Finegrain and
|
204 |
+
<a
|
205 |
+
href="https://huggingface.co/datasets/Nfiniteai/product-masks-sample"
|
206 |
+
target="_blank"
|
207 |
+
>synthetic data provided by Nfinite</a>.
|
208 |
+
<br>
|
209 |
+
</p>
|
210 |
+
<p>
|
211 |
+
<a href="https://discord.gg/zFKg5TjXub" target="_blank">[Discord]</a>
|
212 |
+
<a href="https://github.com/finegrain-ai" target="_blank">[GitHub]</a>
|
213 |
+
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
214 |
"""
|
215 |
|
216 |
with gr.Blocks() as demo:
|