Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -505,6 +505,47 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
|
| 505 |
</div>
|
| 506 |
""")
|
| 507 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 508 |
with gr.Row():
|
| 509 |
with gr.Column(scale=1):
|
| 510 |
input_image = gr.Image(
|
|
|
|
| 505 |
</div>
|
| 506 |
""")
|
| 507 |
|
| 508 |
+
|
| 509 |
+
|
| 510 |
+
# 예제 설명 섹션 추가
|
| 511 |
+
gr.HTML("""
|
| 512 |
+
<div style="margin-top: 50px; padding: 20px; background-color: #f8f9fa; border-radius: 10px;">
|
| 513 |
+
<h2 style="text-align: center; color: #2196F3; margin-bottom: 30px;">How It Works: Step by Step Example</h2>
|
| 514 |
+
|
| 515 |
+
<div style="display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 20px;">
|
| 516 |
+
<div style="text-align: center; flex: 1; min-width: 250px; max-width: 300px;">
|
| 517 |
+
<img src="file/aa1.png" style="width: 100%; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
|
| 518 |
+
<h3 style="color: #333; margin: 15px 0;">Step 1: Original Image</h3>
|
| 519 |
+
<p style="color: #666;">Upload your original image that contains the object you want to extract.</p>
|
| 520 |
+
</div>
|
| 521 |
+
|
| 522 |
+
<div style="text-align: center; flex: 1; min-width: 250px; max-width: 300px;">
|
| 523 |
+
<img src="file/aa2.png" style="width: 100%; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
|
| 524 |
+
<h3 style="color: #333; margin: 15px 0;">Step 2: Extracted Object</h3>
|
| 525 |
+
<p style="color: #666;">Use prompts to identify and extract specific objects from your image.</p>
|
| 526 |
+
</div>
|
| 527 |
+
|
| 528 |
+
<div style="text-align: center; flex: 1; min-width: 250px; max-width: 300px;">
|
| 529 |
+
<img src="file/aa3.png" style="width: 100%; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
|
| 530 |
+
<h3 style="color: #333; margin: 15px 0;">Step 3: Final Result</h3>
|
| 531 |
+
<p style="color: #666;">The extracted object is placed on an AI-generated background based on your description.</p>
|
| 532 |
+
</div>
|
| 533 |
+
</div>
|
| 534 |
+
|
| 535 |
+
<div style="margin-top: 30px; text-align: center; padding: 20px; background-color: #e3f2fd; border-radius: 8px;">
|
| 536 |
+
<h4 style="color: #1976D2; margin-bottom: 10px;">Key Features:</h4>
|
| 537 |
+
<ul style="list-style: none; padding: 0;">
|
| 538 |
+
<li style="margin: 5px 0;">✨ Precise object extraction using AI</li>
|
| 539 |
+
<li style="margin: 5px 0;">🎨 Custom background generation</li>
|
| 540 |
+
<li style="margin: 5px 0;">🔄 Flexible object positioning and sizing</li>
|
| 541 |
+
<li style="margin: 5px 0;">📐 Multiple aspect ratio support</li>
|
| 542 |
+
</ul>
|
| 543 |
+
</div>
|
| 544 |
+
</div>
|
| 545 |
+
""")
|
| 546 |
+
|
| 547 |
+
# 나머지 기존 코드...
|
| 548 |
+
|
| 549 |
with gr.Row():
|
| 550 |
with gr.Column(scale=1):
|
| 551 |
input_image = gr.Image(
|