Spaces:
Running
Running
comdoleger
commited on
Commit
โข
c178277
1
Parent(s):
c8789f0
Update app.py
Browse files
app.py
CHANGED
@@ -141,7 +141,7 @@ def process_generate(fore, prompt, intensity, mode, refprompt, isrmbg):
|
|
141 |
try:
|
142 |
rmbgfore = rmbg(fore)
|
143 |
print(f"Background removed!")
|
144 |
-
if rmbgfore:
|
145 |
fore = rmbgfore
|
146 |
except:
|
147 |
pass
|
@@ -214,18 +214,58 @@ div#share-btn-container > div {flex-direction: row;background: black;align-items
|
|
214 |
color: #fff;
|
215 |
background: #1565c0;
|
216 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
217 |
"""
|
218 |
block = gr.Blocks(css=css, title="## F.ai Fuzer").queue()
|
219 |
with block:
|
220 |
gr.HTML("""
|
221 |
-
<center><h1 style="color:#000">
|
222 |
|
223 |
gr.HTML('''
|
224 |
-
|
225 |
-
<
|
226 |
-
<
|
227 |
-
|
228 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
''')
|
230 |
|
231 |
with gr.Row():
|
@@ -247,10 +287,10 @@ with block:
|
|
247 |
|
248 |
with gr.Column():
|
249 |
gr.HTML('''
|
250 |
-
<div>
|
251 |
-
<
|
252 |
-
<
|
253 |
-
|
254 |
</div>
|
255 |
''')
|
256 |
|
|
|
141 |
try:
|
142 |
rmbgfore = rmbg(fore)
|
143 |
print(f"Background removed!")
|
144 |
+
if rmbgfore is not None:
|
145 |
fore = rmbgfore
|
146 |
except:
|
147 |
pass
|
|
|
214 |
color: #fff;
|
215 |
background: #1565c0;
|
216 |
}
|
217 |
+
body {
|
218 |
+
font-family: Arial, sans-serif;
|
219 |
+
background-color: #f4f4f9;
|
220 |
+
margin: 0;
|
221 |
+
padding: 0;
|
222 |
+
display: flex;
|
223 |
+
justify-content: center;
|
224 |
+
align-items: center;
|
225 |
+
height: 100vh;
|
226 |
+
color: #333;
|
227 |
+
}
|
228 |
+
.container {
|
229 |
+
background-color: #fff;
|
230 |
+
padding: 20px 40px;
|
231 |
+
border-radius: 10px;
|
232 |
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
233 |
+
text-align: center;
|
234 |
+
}
|
235 |
+
h1 {
|
236 |
+
color: #4a90e2;
|
237 |
+
}
|
238 |
+
a {
|
239 |
+
color: #4a90e2;
|
240 |
+
text-decoration: none;
|
241 |
+
font-weight: bold;
|
242 |
+
}
|
243 |
+
a:hover {
|
244 |
+
text-decoration: underline;
|
245 |
+
}
|
246 |
+
.emoji {
|
247 |
+
font-size: 1.5em;
|
248 |
+
}
|
249 |
"""
|
250 |
block = gr.Blocks(css=css, title="## F.ai Fuzer").queue()
|
251 |
with block:
|
252 |
gr.HTML("""
|
253 |
+
<center><h1 style="color:#000">F.ai Fuzer v0.1: Transcending image Generation Control </h1></center>""")
|
254 |
|
255 |
gr.HTML('''
|
256 |
+
|
257 |
+
<div class="container">
|
258 |
+
<h1>๐ง Introducing F.ai Fuzer v0.1: Revolutionize Your Image Generation!</h1>
|
259 |
+
<h2>Control Your Creativity with Unmatched Precision</h2>
|
260 |
+
<p>F.ai Fuzer v0.1 empowers you to seamlessly blend foreground elements with any background, while maintaining the shape and style consistency of the foreground. This tool transcends traditional image generation methods by giving you unprecedented control over the final output.</p>
|
261 |
+
<h2>Features:</h2>
|
262 |
+
<ul>
|
263 |
+
<li>๐ผ๏ธ <strong>Consistent Foreground Style:</strong> Keep the foreground's shape and style intact across various backgrounds.</li>
|
264 |
+
<li>๐ <strong>Seamless Blending:</strong> Effortlessly blend foreground elements with any background for a natural look.</li>
|
265 |
+
<li>๐จ <strong>Custom Background Control:</strong> Choose or generate backgrounds that perfectly match your creative vision.</li>
|
266 |
+
<li>โ๏ธ <strong>Easy Integration:</strong> Integrates smoothly with your existing workflow and tools.</li>
|
267 |
+
</ul>
|
268 |
+
</div>
|
269 |
''')
|
270 |
|
271 |
with gr.Row():
|
|
|
287 |
|
288 |
with gr.Column():
|
289 |
gr.HTML('''
|
290 |
+
<div class="container">
|
291 |
+
<h1>๐ For more freedom of usage, please use our SDK module</h1>
|
292 |
+
<p>๐ค by logging in or signing up to our API dashboard and buying some credits:</p>
|
293 |
+
<p><a href="https://test-apidash-dot-lightr-fotographer-app-dot-fotographer-ai.an.r.appspot.com/login.html">๐ API Dashboard</a></p>
|
294 |
</div>
|
295 |
''')
|
296 |
|