DawnC commited on
Commit
29531b7
·
verified ·
1 Parent(s): 3e20255

Update style_transfer.py

Browse files
Files changed (1) hide show
  1. style_transfer.py +28 -9
style_transfer.py CHANGED
@@ -421,16 +421,35 @@ def create_style_transfer_tab(dog_style_transfer):
421
  """)
422
 
423
  # Add model info and style description display
 
 
 
 
 
 
 
 
 
 
 
424
  gr.HTML("""
425
- <div style="background-color: #f0f8ff; padding: 16px; border-radius: 8px; margin: 16px 0; border: 1px solid #cce5ff; box-shadow: 0 3px 10px rgba(0,0,123,0.1);">
426
- <h3>🐶 Upload a dog photo and select an artistic style</h3>
427
- <p>After uploading your dog photo, the system will transform it into your chosen artistic style. Try different styles to create stunning effects!</p>
428
- <p>Our system uses specialized models for each style to ensure the best results.</p>
429
- <p style="margin-top: 10px; padding: 8px; background-color: #fff9e6; border-left: 4px solid #ffd966; border-radius: 4px;"><b>⏱️ Patience is a virtue!</b> While AI is working its magic, your dog might have time to learn a new trick or two. The transformation can take up to 30 seconds, depending on how photogenic your furry friend is! 🐾</p>
430
- <p style="margin-top: 10px; padding: 8px; background-color: #e6f9ff; border-left: 4px solid #66c2ff; border-radius: 4px;"><b>🤫 A Little Secret:</b> Although we designed this tool for dogs, it can actually transform any photo! Portraits, landscapes, even your favorite teddy bear — feel free to try them all! Just don’t tell the other dogs… they might get jealous! 😉</p>
431
- <p style="margin-top: 10px; padding: 8px; background-color: #e6f9e6; border-left: 4px solid #66cc77; border-radius: 4px;"><b>✨ Unlimited Creativity!</b> Sometimes, AI might surprise you with unexpected creative interpretations, adding unique colors or features to your image. ✨</p>
432
- </div>
433
- """)
 
 
 
 
 
 
 
 
434
 
435
  with gr.Row():
436
  with gr.Column(scale=1):
 
421
  """)
422
 
423
  # Add model info and style description display
424
+ # gr.HTML("""
425
+ # <div style="background-color: #f0f8ff; padding: 16px; border-radius: 8px; margin: 16px 0; border: 1px solid #cce5ff; box-shadow: 0 3px 10px rgba(0,0,123,0.1);">
426
+ # <h3>🐶 Upload a dog photo and select an artistic style</h3>
427
+ # <p>After uploading your dog photo, the system will transform it into your chosen artistic style. Try different styles to create stunning effects!</p>
428
+ # <p>Our system uses specialized models for each style to ensure the best results.</p>
429
+ # <p style="margin-top: 10px; padding: 8px; background-color: #fff9e6; border-left: 4px solid #ffd966; border-radius: 4px;"><b>⏱️ Patience is a virtue!</b> While AI is working its magic, your dog might have time to learn a new trick or two. The transformation can take up to 30 seconds, depending on how photogenic your furry friend is! 🐾</p>
430
+ # <p style="margin-top: 10px; padding: 8px; background-color: #e6f9ff; border-left: 4px solid #66c2ff; border-radius: 4px;"><b>🤫 A Little Secret:</b> Although we designed this tool for dogs, it can actually transform any photo! Portraits, landscapes, even your favorite teddy bear — feel free to try them all! Just don’t tell the other dogs… they might get jealous! 😉</p>
431
+ # <p style="margin-top: 10px; padding: 8px; background-color: #e6f9e6; border-left: 4px solid #66cc77; border-radius: 4px;"><b>✨ Unlimited Creativity!</b> Sometimes, AI might surprise you with unexpected creative interpretations, adding unique colors or features to your image. ✨</p>
432
+ # </div>
433
+ # """)
434
+
435
  gr.HTML("""
436
+ <div style="
437
+ text-align: center;
438
+ padding: 16px;
439
+ margin: 16px 0;
440
+ background: linear-gradient(to right, rgba(66, 153, 225, 0.1), rgba(72, 187, 120, 0.1));
441
+ border-radius: 10px;
442
+ border: 1px solid rgba(66, 153, 225, 0.2);
443
+ box-shadow: 0 3px 10px rgba(0,0,123,0.1);
444
+ ">
445
+ <h3 style="color: #333;">🐶 Upload a dog photo and select an artistic style</h3>
446
+ <p>After uploading your dog photo, the system will transform it into your chosen artistic style. Try different styles to create stunning effects!</p>
447
+ <p>Our system uses specialized models for each style to ensure the best results.</p>
448
+ <p style="margin-top: 10px; padding: 8px; background-color: #fff9e6; border-left: 4px solid #ffd966; border-radius: 4px;"><b>⏱️ Patience is a virtue!</b> While AI is working its magic, your dog might have time to learn a new trick or two. The transformation can take up to 30 seconds, depending on how photogenic your furry friend is! 🐾</p>
449
+ <p style="margin-top: 10px; padding: 8px; background-color: #e6f9ff; border-left: 4px solid #66c2ff; border-radius: 4px;"><b>🤫 A Little Secret:</b> Although we designed this tool for dogs, it can actually transform any photo! Portraits, landscapes, even your favorite teddy bear — feel free to try them all! Just don't tell the other dogs… they might get jealous! 😉</p>
450
+ <p style="margin-top: 10px; padding: 8px; background-color: #e6f9e6; border-left: 4px solid #66cc77; border-radius: 4px;"><b>✨ Unlimited Creativity!</b> Sometimes, AI might surprise you with unexpected creative interpretations, adding unique colors or features to your image. ✨</p>
451
+ </div>
452
+ """)
453
 
454
  with gr.Row():
455
  with gr.Column(scale=1):