Spaces:
Running
Running
Fabrice-TIERCELIN
commited on
Add emoji
Browse files
app.py
CHANGED
@@ -129,7 +129,8 @@ def predict(source_img, enlarge_top, enlarge_right, enlarge_bottom, enlarge_left
|
|
129 |
with gr.Blocks() as interface:
|
130 |
gr.Markdown(
|
131 |
"""
|
132 |
-
<
|
|
|
133 |
<p style="text-align: center;">Enlarges the point of view of your image, up to 1 million pixels, freely, without account, without watermark, which can be downloaded</p>
|
134 |
<br/>
|
135 |
<br/>
|
@@ -141,9 +142,9 @@ with gr.Blocks() as interface:
|
|
141 |
<li>If you need to <b>slightly change</b> your image, I recommend you to use <i>Image-to-Image SDXL</i>,</li>
|
142 |
<li>If you need to change <b>one detail</b> on your image, I recommend you to use <i>Inpaint SDXL</i>.</li>
|
143 |
</ul>
|
144 |
-
<br/>🐌 Slow process... ~20 min with 20 inference steps, ~6 hours with 25 inference steps.<br>You can duplicate this space on a free account, it works on CPU.<br/>
|
145 |
-
<a href='https://huggingface.co/spaces/Fabrice-TIERCELIN/Uncrop?duplicate=true'><img src='https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14'></a>
|
146 |
<br/>
|
|
|
|
|
147 |
<br/>
|
148 |
⚖️ You can use, modify and share the generated images but not for commercial uses.
|
149 |
|
@@ -153,21 +154,21 @@ with gr.Blocks() as interface:
|
|
153 |
with gr.Column():
|
154 |
dummy_1 = gr.Label(visible = False)
|
155 |
with gr.Column():
|
156 |
-
enlarge_top = gr.Number(minimum = 0, value = 64, precision = 0, label = "Enlarge on top", info = "in pixels")
|
157 |
with gr.Column():
|
158 |
dummy_2 = gr.Label(visible = False)
|
159 |
with gr.Row():
|
160 |
with gr.Column():
|
161 |
-
enlarge_left = gr.Number(minimum = 0, value = 64, precision = 0, label = "Enlarge on left", info = "in pixels")
|
162 |
with gr.Column():
|
163 |
-
source_img = gr.Image(label = "Your image",
|
164 |
with gr.Column():
|
165 |
-
enlarge_right = gr.Number(minimum = 0, value = 64, precision = 0, label = "Enlarge on right", info = "in pixels")
|
166 |
with gr.Row():
|
167 |
with gr.Column():
|
168 |
dummy_3 = gr.Label(visible = False)
|
169 |
with gr.Column():
|
170 |
-
enlarge_bottom = gr.Number(minimum = 0, value = 64, precision = 0, label = "Enlarge on bottom", info = "in pixels")
|
171 |
with gr.Column():
|
172 |
dummy_4 = gr.Label(visible = False)
|
173 |
with gr.Row():
|
|
|
129 |
with gr.Blocks() as interface:
|
130 |
gr.Markdown(
|
131 |
"""
|
132 |
+
<big style="text-align: center;">Uncrop</big>
|
133 |
+
<br/>
|
134 |
<p style="text-align: center;">Enlarges the point of view of your image, up to 1 million pixels, freely, without account, without watermark, which can be downloaded</p>
|
135 |
<br/>
|
136 |
<br/>
|
|
|
142 |
<li>If you need to <b>slightly change</b> your image, I recommend you to use <i>Image-to-Image SDXL</i>,</li>
|
143 |
<li>If you need to change <b>one detail</b> on your image, I recommend you to use <i>Inpaint SDXL</i>.</li>
|
144 |
</ul>
|
|
|
|
|
145 |
<br/>
|
146 |
+
🐌 Slow process... ~20 min with 20 inference steps, ~6 hours with 25 inference steps.<br>You can duplicate this space on a free account, it works on CPU.<br/>
|
147 |
+
<a href='https://huggingface.co/spaces/Fabrice-TIERCELIN/Uncrop?duplicate=true'><img src='https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14'></a>
|
148 |
<br/>
|
149 |
⚖️ You can use, modify and share the generated images but not for commercial uses.
|
150 |
|
|
|
154 |
with gr.Column():
|
155 |
dummy_1 = gr.Label(visible = False)
|
156 |
with gr.Column():
|
157 |
+
enlarge_top = gr.Number(minimum = 0, value = 64, precision = 0, label = "Enlarge on top ⬆️", info = "in pixels")
|
158 |
with gr.Column():
|
159 |
dummy_2 = gr.Label(visible = False)
|
160 |
with gr.Row():
|
161 |
with gr.Column():
|
162 |
+
enlarge_left = gr.Number(minimum = 0, value = 64, precision = 0, label = "Enlarge on left ⬅️", info = "in pixels")
|
163 |
with gr.Column():
|
164 |
+
source_img = gr.Image(label = "Your image", sources = ["upload"], type = "numpy")
|
165 |
with gr.Column():
|
166 |
+
enlarge_right = gr.Number(minimum = 0, value = 64, precision = 0, label = "Enlarge on right ➡️", info = "in pixels")
|
167 |
with gr.Row():
|
168 |
with gr.Column():
|
169 |
dummy_3 = gr.Label(visible = False)
|
170 |
with gr.Column():
|
171 |
+
enlarge_bottom = gr.Number(minimum = 0, value = 64, precision = 0, label = "Enlarge on bottom ⬇️", info = "in pixels")
|
172 |
with gr.Column():
|
173 |
dummy_4 = gr.Label(visible = False)
|
174 |
with gr.Row():
|