Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -441,58 +441,53 @@ a:hover {
|
|
441 |
"""
|
442 |
block = gr.Blocks(css=css, title="## F.ai Fuzer").queue()
|
443 |
with block:
|
444 |
-
|
445 |
gr.HTML('''
|
446 |
-
|
|
|
|
|
|
|
447 |
<div class="container">
|
448 |
<center><h1 class="custom-title">Fotographer.ai Fuzer v0.1: Transcending image Generation Controlπ¨</h1></center>
|
449 |
-
<h2>Control Your Creativity with Unmatched Precision
|
450 |
<p>Fotographer.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>
|
451 |
-
|
452 |
<h2>Step-by-Step Instructions</h2>
|
453 |
<p>Follow these instructions to control the generation of backgrounds while keeping the foreground's shape and style consistent:</p>
|
454 |
<ul>
|
455 |
-
<li>
|
456 |
-
<span class="emoji">π</span>
|
457 |
-
<strong>Step 1: Describe the Background</strong>
|
458 |
<p>Start by providing a detailed description of the background you want to create.</p>
|
459 |
<div class="example">
|
460 |
<p><strong>Example:</strong> "A Perfume Bottle nestled on a crystalline cliff of glistening snow, overlooking a serene, moonlit valley."</p>
|
461 |
</div>
|
462 |
</li>
|
463 |
-
<li>
|
464 |
-
<span class="emoji">π‘</span>
|
465 |
-
<strong>Step 2: Describe the Foreground</strong>
|
466 |
<p>Next, describe the texture, lighting, and style of the foreground element.</p>
|
467 |
<div class="example">
|
468 |
<p><strong>Example:</strong> "A transparent glass perfume bottle, vibrant, sunset lighting reflecting off its surface."</p>
|
469 |
</div>
|
470 |
</li>
|
471 |
-
<li>
|
472 |
-
<span class="emoji">ποΈ</span>
|
473 |
-
<strong>Step 3: Adjust the Intensity</strong>
|
474 |
<p>Decide how much change you want to apply to the image. Adjust the intensity to balance between keeping consistency and introducing new elements.</p>
|
475 |
</li>
|
476 |
</ul>
|
477 |
-
|
478 |
-
|
479 |
-
gr.HTML(""
|
480 |
-
|
481 |
-
|
482 |
with gr.Row():
|
483 |
gr.Markdown("### F.ai Fuzer: Real Composite Photography in 2 minutes!")
|
|
|
484 |
with gr.Row():
|
485 |
fore = gr.Image(image_mode='RGBA', type="pil", label="Foreground Image", height=400, width=400)
|
486 |
with gr.Column():
|
487 |
-
result_gallery = gr.Image(label='Output')
|
|
|
488 |
with gr.Row():
|
489 |
prompt = gr.Textbox(label="Prompt")
|
490 |
with gr.Column():
|
491 |
refprompt = gr.Textbox(label="Refiner Prompt")
|
|
|
492 |
with gr.Row():
|
493 |
-
mode = gr.Radio(choices=[e.value for e in Stage],
|
494 |
-
value=Stage.FULL.value,
|
495 |
-
label="Generation Mode", type='value')
|
496 |
mode.change(fn=update_value, inputs=mode, outputs=mode)
|
497 |
|
498 |
with gr.Column():
|
@@ -502,7 +497,7 @@ with block:
|
|
502 |
<p>π€ You can test with free credits:</p>
|
503 |
<h2><a href="https://api-dashboard.fotographer.ai/login.html">π API Dashboard</a></h2>
|
504 |
</div>
|
505 |
-
|
506 |
|
507 |
with gr.Row():
|
508 |
intensity = gr.Slider(label="Refiner Strength", minimum=1.0, maximum=7.0, value=3.0, step=0.5)
|
@@ -512,7 +507,6 @@ with block:
|
|
512 |
generate_button = gr.Button(value="Generate", elem_classes="custom-button")
|
513 |
|
514 |
gr.HTML('''
|
515 |
-
|
516 |
<div class="container">
|
517 |
<h2>Features:</h2>
|
518 |
<ul>
|
@@ -521,8 +515,8 @@ with block:
|
|
521 |
<li>π¨ <strong>Custom Background Control:</strong> Choose or generate backgrounds that perfectly match your creative vision.</li>
|
522 |
<li>βοΈ <strong>Easy Integration:</strong> Integrates smoothly with your existing workflow and tools.</li>
|
523 |
</ul>
|
524 |
-
|
525 |
-
|
526 |
|
527 |
gr.HTML("""
|
528 |
<center><h2><a href="https://fotographer.ai/">π Check Out our other Projects Here!</a></h2></center>""")
|
|
|
441 |
"""
|
442 |
block = gr.Blocks(css=css, title="## F.ai Fuzer").queue()
|
443 |
with block:
|
|
|
444 |
gr.HTML('''
|
445 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
446 |
+
''') # Add the viewport meta tag here
|
447 |
+
|
448 |
+
gr.HTML('''
|
449 |
<div class="container">
|
450 |
<center><h1 class="custom-title">Fotographer.ai Fuzer v0.1: Transcending image Generation Controlπ¨</h1></center>
|
451 |
+
<h2>Control Your Creativity with Unmatched Precision:</h2>
|
452 |
<p>Fotographer.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>
|
|
|
453 |
<h2>Step-by-Step Instructions</h2>
|
454 |
<p>Follow these instructions to control the generation of backgrounds while keeping the foreground's shape and style consistent:</p>
|
455 |
<ul>
|
456 |
+
<li><span class="emoji">π</span> <strong>Step 1: Describe the Background</strong>
|
|
|
|
|
457 |
<p>Start by providing a detailed description of the background you want to create.</p>
|
458 |
<div class="example">
|
459 |
<p><strong>Example:</strong> "A Perfume Bottle nestled on a crystalline cliff of glistening snow, overlooking a serene, moonlit valley."</p>
|
460 |
</div>
|
461 |
</li>
|
462 |
+
<li><span class="emoji">π‘</span> <strong>Step 2: Describe the Foreground</strong>
|
|
|
|
|
463 |
<p>Next, describe the texture, lighting, and style of the foreground element.</p>
|
464 |
<div class="example">
|
465 |
<p><strong>Example:</strong> "A transparent glass perfume bottle, vibrant, sunset lighting reflecting off its surface."</p>
|
466 |
</div>
|
467 |
</li>
|
468 |
+
<li><span class="emoji">ποΈ</span> <strong>Step 3: Adjust the Intensity</strong>
|
|
|
|
|
469 |
<p>Decide how much change you want to apply to the image. Adjust the intensity to balance between keeping consistency and introducing new elements.</p>
|
470 |
</li>
|
471 |
</ul>
|
472 |
+
</div>
|
473 |
+
''')
|
474 |
+
gr.HTML('<center><h2><a href="https://api-dashboard.fotographer.ai/login.html">π Check out our API!</a></h2></center>')
|
475 |
+
|
|
|
476 |
with gr.Row():
|
477 |
gr.Markdown("### F.ai Fuzer: Real Composite Photography in 2 minutes!")
|
478 |
+
|
479 |
with gr.Row():
|
480 |
fore = gr.Image(image_mode='RGBA', type="pil", label="Foreground Image", height=400, width=400)
|
481 |
with gr.Column():
|
482 |
+
result_gallery = gr.Image(label='Output')
|
483 |
+
|
484 |
with gr.Row():
|
485 |
prompt = gr.Textbox(label="Prompt")
|
486 |
with gr.Column():
|
487 |
refprompt = gr.Textbox(label="Refiner Prompt")
|
488 |
+
|
489 |
with gr.Row():
|
490 |
+
mode = gr.Radio(choices=[e.value for e in Stage], value=Stage.FULL.value, label="Generation Mode", type='value')
|
|
|
|
|
491 |
mode.change(fn=update_value, inputs=mode, outputs=mode)
|
492 |
|
493 |
with gr.Column():
|
|
|
497 |
<p>π€ You can test with free credits:</p>
|
498 |
<h2><a href="https://api-dashboard.fotographer.ai/login.html">π API Dashboard</a></h2>
|
499 |
</div>
|
500 |
+
''')
|
501 |
|
502 |
with gr.Row():
|
503 |
intensity = gr.Slider(label="Refiner Strength", minimum=1.0, maximum=7.0, value=3.0, step=0.5)
|
|
|
507 |
generate_button = gr.Button(value="Generate", elem_classes="custom-button")
|
508 |
|
509 |
gr.HTML('''
|
|
|
510 |
<div class="container">
|
511 |
<h2>Features:</h2>
|
512 |
<ul>
|
|
|
515 |
<li>π¨ <strong>Custom Background Control:</strong> Choose or generate backgrounds that perfectly match your creative vision.</li>
|
516 |
<li>βοΈ <strong>Easy Integration:</strong> Integrates smoothly with your existing workflow and tools.</li>
|
517 |
</ul>
|
518 |
+
''')
|
519 |
+
|
520 |
|
521 |
gr.HTML("""
|
522 |
<center><h2><a href="https://fotographer.ai/">π Check Out our other Projects Here!</a></h2></center>""")
|