deltheil commited on
Commit
eedbe00
·
1 Parent(s): 24c15a3

tweak html content

Browse files
Files changed (1) hide show
  1. 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
- <center>
182
-
183
- <div style="
184
- background-color: #ff9100;
185
- color: #1f2937;
186
- padding: 0.5rem 1rem;
187
- font-size: 1.25rem;
188
- ">
189
- 🥳 We're launching our API! It's way faster and more accurate than this space, so check it out!
190
- <a href="https://finegrain.ai/?utm_source=hf&utm_campaign=object-cutter" target="_blank">Try it now for free</a>
191
- using our Editor app! 🚀
192
- </div>
193
-
194
- <h1 style="font-size: 1.5rem; margin-bottom: 0.5rem;">
195
- Object Cutter Powered By Refiners
196
- </h1>
197
-
198
- <p>
199
- Create high-quality HD cutouts for any object in your image with just a text prompt — no manual work required!
200
- <br>
201
- The object will be available on a transparent background, ready to paste elsewhere.
202
- </p>
203
-
204
- <p>
205
- This space uses the
206
- <a
207
- href="https://huggingface.co/finegrain/finegrain-box-segmenter"
208
- target="_blank"
209
- >Finegrain Box Segmenter model</a>,
210
- trained with a mix of natural data curated by Finegrain and
211
- <a
212
- href="https://huggingface.co/datasets/Nfiniteai/product-masks-sample"
213
- target="_blank"
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: