Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -407,13 +407,13 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
|
| 407 |
|
| 408 |
with gr.TabItem("๐จ Multiple Images", id="multiple") as multi_tab:
|
| 409 |
gallery_input = gr.Gallery(
|
| 410 |
-
label="Input Images",
|
| 411 |
file_types=["image"],
|
| 412 |
elem_classes="gallery-input"
|
| 413 |
)
|
| 414 |
gr.HTML('''
|
| 415 |
<p style="text-align: center; color: #6b7280; font-size: 0.9rem; margin-top: 0.5rem;">
|
| 416 |
-
๐ก
|
| 417 |
</p>
|
| 418 |
''')
|
| 419 |
|
|
@@ -474,7 +474,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
|
| 474 |
<ul style="margin: 0; padding-left: 1.5rem; color: #0c4a6e;">
|
| 475 |
<li>Use specific and detailed prompts for better results</li>
|
| 476 |
<li>You can reuse generated images for iterative improvements</li>
|
| 477 |
-
<li>Multiple image mode
|
| 478 |
<li>English prompts tend to produce better results</li>
|
| 479 |
</ul>
|
| 480 |
</div>
|
|
@@ -539,21 +539,21 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
|
| 539 |
else:
|
| 540 |
message = '''
|
| 541 |
<div class="login-message">
|
| 542 |
-
<h2>๐
|
| 543 |
<p style="font-size: 1.1rem; margin: 1rem 0;">
|
| 544 |
-
|
| 545 |
</p>
|
| 546 |
<p style="margin: 1rem 0;">
|
| 547 |
-
|
| 548 |
</p>
|
| 549 |
<ul style="text-align: left; display: inline-block; margin: 1rem 0;">
|
| 550 |
-
<li>๐
|
| 551 |
-
<li>โก
|
| 552 |
-
<li>๐จ
|
| 553 |
-
<li>๐ง
|
| 554 |
</ul>
|
| 555 |
<p style="margin-top: 1.5rem; font-weight: bold;">
|
| 556 |
-
|
| 557 |
</p>
|
| 558 |
</div>
|
| 559 |
'''
|
|
|
|
| 407 |
|
| 408 |
with gr.TabItem("๐จ Multiple Images", id="multiple") as multi_tab:
|
| 409 |
gallery_input = gr.Gallery(
|
| 410 |
+
label="Input Images (Max 2 images)",
|
| 411 |
file_types=["image"],
|
| 412 |
elem_classes="gallery-input"
|
| 413 |
)
|
| 414 |
gr.HTML('''
|
| 415 |
<p style="text-align: center; color: #6b7280; font-size: 0.9rem; margin-top: 0.5rem;">
|
| 416 |
+
๐ก Upload up to 2 images for combination/editing
|
| 417 |
</p>
|
| 418 |
''')
|
| 419 |
|
|
|
|
| 474 |
<ul style="margin: 0; padding-left: 1.5rem; color: #0c4a6e;">
|
| 475 |
<li>Use specific and detailed prompts for better results</li>
|
| 476 |
<li>You can reuse generated images for iterative improvements</li>
|
| 477 |
+
<li>Multiple image mode supports up to 2 images for combination</li>
|
| 478 |
<li>English prompts tend to produce better results</li>
|
| 479 |
</ul>
|
| 480 |
</div>
|
|
|
|
| 539 |
else:
|
| 540 |
message = '''
|
| 541 |
<div class="login-message">
|
| 542 |
+
<h2>๐ Login Required</h2>
|
| 543 |
<p style="font-size: 1.1rem; margin: 1rem 0;">
|
| 544 |
+
Please sign in with your Hugging Face account to use this AI image generation tool.
|
| 545 |
</p>
|
| 546 |
<p style="margin: 1rem 0;">
|
| 547 |
+
After logging in, you can access:
|
| 548 |
</p>
|
| 549 |
<ul style="text-align: left; display: inline-block; margin: 1rem 0;">
|
| 550 |
+
<li>๐ High-quality image generation via Google Nano Banana</li>
|
| 551 |
+
<li>โก Fast image generation and editing</li>
|
| 552 |
+
<li>๐จ Text-to-image conversion</li>
|
| 553 |
+
<li>๐ง Multiple image editing and combining</li>
|
| 554 |
</ul>
|
| 555 |
<p style="margin-top: 1.5rem; font-weight: bold;">
|
| 556 |
+
Click the "Sign in with Hugging Face" button at the top to get started!
|
| 557 |
</p>
|
| 558 |
</div>
|
| 559 |
'''
|