Laurent
commited on
improve title
Browse files
README.md
CHANGED
|
@@ -8,6 +8,7 @@ sdk_version: 4.39.0
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: other
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: other
|
| 11 |
+
short_description: Erase any object just by naming it!
|
| 12 |
---
|
| 13 |
|
| 14 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
|
@@ -72,37 +72,37 @@ def on_change_prompt(img: Image.Image | None, prompt: str | None):
|
|
| 72 |
return gr.update(interactive=bool(img and prompt))
|
| 73 |
|
| 74 |
|
| 75 |
-
|
| 76 |
<center>
|
| 77 |
-
<h1>Object Eraser Powered by Refiners</h1>
|
| 78 |
-
|
| 79 |
-
<p style="font-size: 1.25rem;">
|
| 80 |
-
<a href="https://refine.rs" target="_blank">[refiners]</a>
|
| 81 |
-
<a href="https://finegrain.ai/" target="_blank">[finegrain]</a>
|
| 82 |
-
</p>
|
| 83 |
-
|
| 84 |
-
<p>
|
| 85 |
-
Erase any object from your image just by naming it — no manual work required!
|
| 86 |
-
Not only will the object disappear, but so will its effects on the scene, like shadows or reflections.
|
| 87 |
-
</p>
|
| 88 |
-
|
| 89 |
-
<p>
|
| 90 |
-
If you enjoyed this space, please consider starring Refiners on GitHub!
|
| 91 |
-
|
| 92 |
-
<a href="https://github.com/finegrain-ai/refiners" target="_blank">
|
| 93 |
-
<img
|
| 94 |
-
src="https://img.shields.io/github/stars/finegrain-ai/refiners?style=social"
|
| 95 |
-
style="display: inline; vertical-align: middle;"
|
| 96 |
-
/>
|
| 97 |
-
</a>
|
| 98 |
-
</p>
|
| 99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
|
| 101 |
</center>
|
| 102 |
"""
|
| 103 |
|
| 104 |
with gr.Blocks() as demo:
|
| 105 |
-
gr.HTML(
|
| 106 |
with gr.Tab("By prompt", id="tab_prompt"):
|
| 107 |
with gr.Row():
|
| 108 |
with gr.Column():
|
|
|
|
| 72 |
return gr.update(interactive=bool(img and prompt))
|
| 73 |
|
| 74 |
|
| 75 |
+
TITLE = """
|
| 76 |
<center>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
+
<h1 style="font-size: 1.5rem; margin-bottom: 0.5rem;">
|
| 79 |
+
Object Eraser Powered By Refiners
|
| 80 |
+
</h1>
|
| 81 |
+
|
| 82 |
+
<div style="display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 1.25rem; flex-wrap: wrap;">
|
| 83 |
+
<a href="https://github.com/finegrain-ai/refiners" target="_blank">[Refiners]</a>
|
| 84 |
+
<a href="https://finegrain.ai/" target="_blank">[Finegrain]</a>
|
| 85 |
+
<a href="https://huggingface.co/spaces/finegrain/finegrain-image-enhancer" target="_blank">[Finegrain Image Enhancer]</a>
|
| 86 |
+
</div>
|
| 87 |
+
|
| 88 |
+
<p>
|
| 89 |
+
Erase any object from your image just by naming it — no manual work required!
|
| 90 |
+
Not only will the object disappear, but so will its effects on the scene, like shadows or reflections.
|
| 91 |
+
</p>
|
| 92 |
+
|
| 93 |
+
<p style="margin: 0;">
|
| 94 |
+
This space is powered by Refiners, our open source micro-framework for simple foundation model adaptation.
|
| 95 |
+
If you enjoyed it, please consider starring Refiners on GitHub!
|
| 96 |
+
<a href="https://github.com/finegrain-ai/refiners" target="_blank">
|
| 97 |
+
<img src="https://img.shields.io/github/stars/finegrain-ai/refiners?style=social" style="display: inline; vertical-align: middle;" />
|
| 98 |
+
</a>
|
| 99 |
+
</p>
|
| 100 |
|
| 101 |
</center>
|
| 102 |
"""
|
| 103 |
|
| 104 |
with gr.Blocks() as demo:
|
| 105 |
+
gr.HTML(TITLE)
|
| 106 |
with gr.Tab("By prompt", id="tab_prompt"):
|
| 107 |
with gr.Row():
|
| 108 |
with gr.Column():
|