tweak html content
Browse files- src/app.py +19 -32
src/app.py
CHANGED
|
@@ -121,38 +121,25 @@ def on_change_prompt(img: Image.Image | None, prompt: str | None):
|
|
| 121 |
|
| 122 |
|
| 123 |
TITLE = """
|
| 124 |
-
<
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
">
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
<
|
| 142 |
-
|
| 143 |
-
Not only will the object disappear, but so will its effects on the scene, like shadows or reflections.
|
| 144 |
-
</p>
|
| 145 |
-
|
| 146 |
-
<p>
|
| 147 |
-
This space is powered by Refiners, our open source micro-framework for simple foundation model adaptation.
|
| 148 |
-
If you enjoyed it, please consider starring Refiners on GitHub!
|
| 149 |
-
</p>
|
| 150 |
-
|
| 151 |
-
<a href="https://github.com/finegrain-ai/refiners" target="_blank">
|
| 152 |
-
<img src="https://img.shields.io/github/stars/finegrain-ai/refiners?style=social" />
|
| 153 |
-
</a>
|
| 154 |
-
|
| 155 |
-
</center>
|
| 156 |
"""
|
| 157 |
|
| 158 |
with gr.Blocks() as demo:
|
|
|
|
| 121 |
|
| 122 |
|
| 123 |
TITLE = """
|
| 124 |
+
<div style="
|
| 125 |
+
background-color: #f08c00;
|
| 126 |
+
color: #212529;
|
| 127 |
+
padding: 0.5rem 1rem;
|
| 128 |
+
font-size: 1.25rem;
|
| 129 |
+
" align="center">
|
| 130 |
+
🥳 We're launching our API! It's way faster and more accurate than this space, so check it out!
|
| 131 |
+
<a href="https://finegrain.ai/?utm_source=hf&utm_campaign=object-eraser" target="_blank">Try it now for free</a>
|
| 132 |
+
using our Editor app! 🚀
|
| 133 |
+
</div>
|
| 134 |
+
<h1>Finegrain Object Eraser</h1>
|
| 135 |
+
<p>
|
| 136 |
+
Erase any object from your image just by naming it — no manual work required!
|
| 137 |
+
Not only will the object disappear, but so will its effects on the scene, like shadows or reflections.
|
| 138 |
+
</p>
|
| 139 |
+
<p>
|
| 140 |
+
<a href="https://discord.gg/zFKg5TjXub" target="_blank">[Discord]</a>
|
| 141 |
+
<a href="https://github.com/finegrain-ai" target="_blank">[GitHub]</a>
|
| 142 |
+
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
"""
|
| 144 |
|
| 145 |
with gr.Blocks() as demo:
|