dc086989 commited on
Commit
d7c7741
·
verified ·
1 Parent(s): 9b6d5bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -22
app.py CHANGED
@@ -29,21 +29,6 @@ custom_css = """
29
  transform: scale(1.05);
30
  box-shadow: 0 6px 15px rgba(255, 75, 43, 0.8);
31
  }
32
- .title {
33
- text-align: center;
34
- font-size: 28px !important;
35
- font-weight: bold !important;
36
- }
37
- .logo-container {
38
- display: flex;
39
- justify-content: center;
40
- margin-bottom: 20px;
41
- }
42
- .description {
43
- text-align: center;
44
- font-size: 16px;
45
- margin-bottom: 20px;
46
- }
47
  """
48
 
49
  def remove_background(input_image):
@@ -66,15 +51,33 @@ example_files = [
66
  ]
67
 
68
  # APP Interface
69
- with gr.Blocks(css=custom_css, title="Professional Background Remover") as app:
70
  # Header with logo and title
71
- with gr.Column(elem_classes=["logo-container"]):
72
- gr.Markdown("""
73
- <div class="title">Professional Background Remover</div>
74
- <div class="description">
75
- Upload any image to instantly remove the background. Perfect for product photos, portraits, and marketing materials<br>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  </div>
77
- """)
 
 
78
  # Main Interface
79
  with gr.Row():
80
  with gr.Column(scale=0.5):
 
29
  transform: scale(1.05);
30
  box-shadow: 0 6px 15px rgba(255, 75, 43, 0.8);
31
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  """
33
 
34
  def remove_background(input_image):
 
51
  ]
52
 
53
  # APP Interface
54
+ with gr.Blocks(css=custom_css) as app:
55
  # Header with logo and title
56
+ gr.Markdown(
57
+ """
58
+ <a href="https://miniai.live" style="display: flex; align-items: center;">
59
+ <img src="https://miniai.live/wp-content/uploads/2024/02/logo_name-1-768x426-1.png" style="width: 18%; margin-right: 15px;"/>
60
+ <div>
61
+ <p style="font-size: 40px; font-weight: bold; margin-right: 20px;">Background Removal Pro</p>
62
+ </div>
63
+ </a>
64
+ <div style="display: flex; justify-content: center; align-items: center;">
65
+ <table style="text-align: center;">
66
+ <tr>
67
+ <td style="text-align: center; vertical-align: middle;"><a href="https://github.com/MiniAiLive"><img src="https://miniai.live/wp-content/uploads/2024/10/new_git-1-300x67.png" style="height: 50px; margin-right: 5px;" title="GITHUB"/></a></td>
68
+ <td style="text-align: center; vertical-align: middle;"><a href="https://huggingface.co/MiniAiLive"><img src="https://miniai.live/wp-content/uploads/2024/10/new_hugging-1-300x67.png" style="height: 50px; margin-right: 5px;" title="HuggingFace"/></a></td>
69
+ <td style="text-align: center; vertical-align: middle;"><a href="https://demo.miniai.live"><img src="https://miniai.live/wp-content/uploads/2024/10/new_gradio-300x67.png" style="height: 50px; margin-right: 5px;" title="Gradio"/></a></td>
70
+ </tr>
71
+ <tr>
72
+ <td style="text-align: center; vertical-align: middle;"><a href="https://docs.miniai.live/"><img src="https://miniai.live/wp-content/uploads/2024/10/a-300x70.png" style="height: 50px; margin-right: 5px;" title="Documentation"/></a></td>
73
+ <td style="text-align: center; vertical-align: middle;"><a href="https://www.youtube.com/@miniailive"><img src="https://miniai.live/wp-content/uploads/2024/10/Untitled-1-300x70.png" style="height: 50px; margin-right: 5px;" title="Youtube"/></a></td>
74
+ <td style="text-align: center; vertical-align: middle;"><a href="https://play.google.com/store/apps/dev?id=5831076207730531667"><img src="https://miniai.live/wp-content/uploads/2024/10/googleplay-300x62.png" style="height: 50px; margin-right: 5px;" title="Google Play"/></a></td>
75
+ </tr>
76
+ </table>
77
  </div>
78
+ <br/>
79
+ """
80
+ )
81
  # Main Interface
82
  with gr.Row():
83
  with gr.Column(scale=0.5):