Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,6 +89,8 @@ def process(image, progress=gr.Progress()):
|
|
| 89 |
# Return the processed image and the file for download
|
| 90 |
return output_array, gr.update(visible=True, value=filepath, interactive=True)
|
| 91 |
|
|
|
|
|
|
|
| 92 |
# Gradio interface setup
|
| 93 |
title = "Background Removal Tool"
|
| 94 |
description = """
|
|
@@ -102,90 +104,28 @@ description = """
|
|
| 102 |
border-radius: 15px;
|
| 103 |
box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
|
| 104 |
}
|
| 105 |
-
.custom-logo {
|
| 106 |
-
display: flex;
|
| 107 |
-
align-items: center;
|
| 108 |
-
justify-content: center;
|
| 109 |
-
margin-bottom: 2rem;
|
| 110 |
-
transform: scale(0.8);
|
| 111 |
-
}
|
| 112 |
-
.logo-mark {
|
| 113 |
-
position: relative;
|
| 114 |
-
width: 60px;
|
| 115 |
-
height: 60px;
|
| 116 |
-
margin-right: 15px;
|
| 117 |
-
animation: logo-spin 12s linear infinite;
|
| 118 |
-
}
|
| 119 |
-
.logo-hexagon {
|
| 120 |
-
position: absolute;
|
| 121 |
-
width: 100%;
|
| 122 |
-
height: 100%;
|
| 123 |
-
background: linear-gradient(135deg, #ff00de, #00ffff);
|
| 124 |
-
clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
|
| 125 |
-
animation: pulse-glow 4s infinite alternate;
|
| 126 |
-
}
|
| 127 |
-
.logo-inner {
|
| 128 |
-
position: absolute;
|
| 129 |
-
top: 50%;
|
| 130 |
-
left: 50%;
|
| 131 |
-
transform: translate(-50%, -50%);
|
| 132 |
-
color: #00ffff;
|
| 133 |
-
font-family: 'Orbitron', sans-serif;
|
| 134 |
-
font-weight: 700;
|
| 135 |
-
font-size: 28px;
|
| 136 |
-
text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
|
| 137 |
-
}
|
| 138 |
-
.logo-text {
|
| 139 |
-
font-family: 'Orbitron', sans-serif;
|
| 140 |
-
font-size: 36px;
|
| 141 |
-
font-weight: 700;
|
| 142 |
-
background: linear-gradient(45deg, #ff00de, #00ffff);
|
| 143 |
-
-webkit-background-clip: text;
|
| 144 |
-
background-clip: text;
|
| 145 |
-
-webkit-text-fill-color: transparent;
|
| 146 |
-
text-shadow: 0 0 10px rgba(255, 0, 222, 0.5);
|
| 147 |
-
animation: text-glow 2s infinite alternate;
|
| 148 |
-
}
|
| 149 |
.title-text {
|
| 150 |
-
color: #
|
| 151 |
font-family: 'Orbitron', sans-serif;
|
| 152 |
font-size: 2.5em;
|
| 153 |
margin: 20px 0;
|
| 154 |
-
text-shadow: 0 0 10px rgba(
|
| 155 |
animation: title-pulse 2s infinite alternate;
|
| 156 |
}
|
| 157 |
.subtitle-text {
|
| 158 |
-
color: #
|
| 159 |
font-family: 'Roboto Mono', monospace;
|
| 160 |
font-size: 1.2em;
|
| 161 |
margin-top: 10px;
|
| 162 |
line-height: 1.5;
|
| 163 |
-
|
| 164 |
-
@keyframes logo-spin {
|
| 165 |
-
0% { transform: rotateY(0deg); }
|
| 166 |
-
100% { transform: rotateY(360deg); }
|
| 167 |
-
}
|
| 168 |
-
@keyframes pulse-glow {
|
| 169 |
-
0% { filter: brightness(1) drop-shadow(0 0 5px #00ffff); }
|
| 170 |
-
100% { filter: brightness(1.2) drop-shadow(0 0 15px #00ffff); }
|
| 171 |
-
}
|
| 172 |
-
@keyframes text-glow {
|
| 173 |
-
0% { text-shadow: 0 0 5px rgba(255, 0, 222, 0.5); }
|
| 174 |
-
100% { text-shadow: 0 0 15px rgba(255, 0, 222, 0.8), 0 0 25px rgba(0, 255, 255, 0.5); }
|
| 175 |
}
|
| 176 |
@keyframes title-pulse {
|
| 177 |
-
0% { text-shadow: 0 0 5px rgba(
|
| 178 |
-
100% { text-shadow: 0 0 15px rgba(
|
| 179 |
}
|
| 180 |
</style>
|
| 181 |
<div class="custom-container">
|
| 182 |
-
<div class="custom-logo">
|
| 183 |
-
<div class="logo-mark">
|
| 184 |
-
<div class="logo-hexagon"></div>
|
| 185 |
-
<div class="logo-inner">A</div>
|
| 186 |
-
</div>
|
| 187 |
-
<div class="logo-text">AicO Tools</div>
|
| 188 |
-
</div>
|
| 189 |
<h1 class="title-text">AI Background Removal</h1>
|
| 190 |
<p class="subtitle-text">
|
| 191 |
Remove backgrounds instantly using advanced AI technology
|
|
|
|
| 89 |
# Return the processed image and the file for download
|
| 90 |
return output_array, gr.update(visible=True, value=filepath, interactive=True)
|
| 91 |
|
| 92 |
+
# ... previous code remains the same until the description ...
|
| 93 |
+
|
| 94 |
# Gradio interface setup
|
| 95 |
title = "Background Removal Tool"
|
| 96 |
description = """
|
|
|
|
| 104 |
border-radius: 15px;
|
| 105 |
box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
|
| 106 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
.title-text {
|
| 108 |
+
color: #ff00de;
|
| 109 |
font-family: 'Orbitron', sans-serif;
|
| 110 |
font-size: 2.5em;
|
| 111 |
margin: 20px 0;
|
| 112 |
+
text-shadow: 0 0 10px rgba(255, 0, 222, 0.5);
|
| 113 |
animation: title-pulse 2s infinite alternate;
|
| 114 |
}
|
| 115 |
.subtitle-text {
|
| 116 |
+
color: #00ffff;
|
| 117 |
font-family: 'Roboto Mono', monospace;
|
| 118 |
font-size: 1.2em;
|
| 119 |
margin-top: 10px;
|
| 120 |
line-height: 1.5;
|
| 121 |
+
text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 122 |
}
|
| 123 |
@keyframes title-pulse {
|
| 124 |
+
0% { text-shadow: 0 0 5px rgba(255, 0, 222, 0.5); }
|
| 125 |
+
100% { text-shadow: 0 0 15px rgba(255, 0, 222, 0.8), 0 0 25px rgba(255, 0, 222, 0.5); }
|
| 126 |
}
|
| 127 |
</style>
|
| 128 |
<div class="custom-container">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
<h1 class="title-text">AI Background Removal</h1>
|
| 130 |
<p class="subtitle-text">
|
| 131 |
Remove backgrounds instantly using advanced AI technology
|