Update app.py
Browse files
app.py
CHANGED
|
@@ -193,73 +193,73 @@ def process_image(images, project_name, project_type):
|
|
| 193 |
except Exception as e:
|
| 194 |
return f"<p style='color: red;'>Error: {str(e)}</p>", "Failure", "", "", "0%"
|
| 195 |
|
| 196 |
-
# Gradio UI with
|
| 197 |
with gr.Blocks(css="""
|
| 198 |
.gradio-container {
|
| 199 |
-
background-color: #
|
| 200 |
-
font-family:
|
| 201 |
-
padding:
|
| 202 |
}
|
| 203 |
.title {
|
| 204 |
-
color: #
|
| 205 |
-
font-size:
|
| 206 |
text-align: center;
|
| 207 |
font-weight: bold;
|
| 208 |
-
margin-bottom:
|
| 209 |
}
|
| 210 |
.gradio-row {
|
| 211 |
text-align: center;
|
| 212 |
-
margin-bottom:
|
| 213 |
}
|
| 214 |
.gradio-container .output {
|
| 215 |
-
background-color:
|
| 216 |
-
padding:
|
| 217 |
-
border-radius:
|
| 218 |
-
box-shadow: 0
|
| 219 |
text-align: left;
|
| 220 |
-
font-size:
|
| 221 |
}
|
| 222 |
.gradio-container .input {
|
| 223 |
text-align: center;
|
| 224 |
-
margin-bottom:
|
| 225 |
}
|
| 226 |
.gradio-container .button {
|
| 227 |
display: block;
|
| 228 |
margin: 0 auto;
|
| 229 |
-
background: linear-gradient(to right, #
|
| 230 |
color: white;
|
| 231 |
border: none;
|
| 232 |
-
padding:
|
| 233 |
-
border-radius:
|
| 234 |
cursor: pointer;
|
| 235 |
-
font-size:
|
| 236 |
transition: background 0.3s;
|
| 237 |
}
|
| 238 |
.gradio-container .button:hover {
|
| 239 |
-
background:
|
| 240 |
}
|
| 241 |
progress::-webkit-progress-value {
|
| 242 |
-
background-color: #
|
| 243 |
-
border-radius:
|
| 244 |
}
|
| 245 |
progress::-webkit-progress-bar {
|
| 246 |
-
background-color: #
|
| 247 |
-
border-radius:
|
| 248 |
}
|
| 249 |
details summary {
|
| 250 |
cursor: pointer;
|
| 251 |
-
padding:
|
| 252 |
-
background-color: #
|
| 253 |
-
border-radius:
|
| 254 |
font-weight: bold;
|
| 255 |
margin-bottom: 5px;
|
| 256 |
}
|
| 257 |
details ul {
|
| 258 |
-
margin-top:
|
| 259 |
-
padding-left:
|
| 260 |
}
|
| 261 |
.output strong {
|
| 262 |
-
color: #
|
| 263 |
font-weight: bold;
|
| 264 |
}
|
| 265 |
""") as demo:
|
|
|
|
| 193 |
except Exception as e:
|
| 194 |
return f"<p style='color: red;'>Error: {str(e)}</p>", "Failure", "", "", "0%"
|
| 195 |
|
| 196 |
+
# Gradio UI with updated styling
|
| 197 |
with gr.Blocks(css="""
|
| 198 |
.gradio-container {
|
| 199 |
+
background-color: #f5f7fa;
|
| 200 |
+
font-family: Arial, sans-serif;
|
| 201 |
+
padding: 15px;
|
| 202 |
}
|
| 203 |
.title {
|
| 204 |
+
color: #2e86ab;
|
| 205 |
+
font-size: 26px;
|
| 206 |
text-align: center;
|
| 207 |
font-weight: bold;
|
| 208 |
+
margin-bottom: 15px;
|
| 209 |
}
|
| 210 |
.gradio-row {
|
| 211 |
text-align: center;
|
| 212 |
+
margin-bottom: 10px;
|
| 213 |
}
|
| 214 |
.gradio-container .output {
|
| 215 |
+
background-color: #ffffff;
|
| 216 |
+
padding: 10px;
|
| 217 |
+
border-radius: 6px;
|
| 218 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
| 219 |
text-align: left;
|
| 220 |
+
font-size: 15px;
|
| 221 |
}
|
| 222 |
.gradio-container .input {
|
| 223 |
text-align: center;
|
| 224 |
+
margin-bottom: 8px;
|
| 225 |
}
|
| 226 |
.gradio-container .button {
|
| 227 |
display: block;
|
| 228 |
margin: 0 auto;
|
| 229 |
+
background: linear-gradient(to right, #4a90e2, #2e86ab);
|
| 230 |
color: white;
|
| 231 |
border: none;
|
| 232 |
+
padding: 10px 20px;
|
| 233 |
+
border-radius: 6px;
|
| 234 |
cursor: pointer;
|
| 235 |
+
font-size: 15px;
|
| 236 |
transition: background 0.3s;
|
| 237 |
}
|
| 238 |
.gradio-container .button:hover {
|
| 239 |
+
background: #2e86ab;
|
| 240 |
}
|
| 241 |
progress::-webkit-progress-value {
|
| 242 |
+
background-color: #e74c3c;
|
| 243 |
+
border-radius: 4px;
|
| 244 |
}
|
| 245 |
progress::-webkit-progress-bar {
|
| 246 |
+
background-color: #ecf0f1;
|
| 247 |
+
border-radius: 4px;
|
| 248 |
}
|
| 249 |
details summary {
|
| 250 |
cursor: pointer;
|
| 251 |
+
padding: 8px;
|
| 252 |
+
background-color: #ecf0f1;
|
| 253 |
+
border-radius: 4px;
|
| 254 |
font-weight: bold;
|
| 255 |
margin-bottom: 5px;
|
| 256 |
}
|
| 257 |
details ul {
|
| 258 |
+
margin-top: 8px;
|
| 259 |
+
padding-left: 18px;
|
| 260 |
}
|
| 261 |
.output strong {
|
| 262 |
+
color: #2e86ab;
|
| 263 |
font-weight: bold;
|
| 264 |
}
|
| 265 |
""") as demo:
|