Spaces:
Running
Running
StephaneBah
commited on
Commit
•
c29e5aa
1
Parent(s):
f3a81e2
Update app.py
Browse files
app.py
CHANGED
@@ -13,19 +13,18 @@ def create_interface():
|
|
13 |
gr.HTML(
|
14 |
"""<style>
|
15 |
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&family=Roboto:wght@400&display=swap');
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
h3 { font-family: 'Roboto', sans-serif; color: #333; text-align: center; }
|
20 |
.segment-btn {
|
21 |
-
background-color: #
|
22 |
border-radius: 8px;
|
23 |
padding: 10px 20px;
|
24 |
color: white;
|
25 |
transition: background-color 0.3s ease, transform 0.2s ease;
|
26 |
}
|
27 |
.segment-btn:hover {
|
28 |
-
background-color: #
|
29 |
transform: scale(1.05);
|
30 |
}
|
31 |
.logo {
|
@@ -38,7 +37,7 @@ def create_interface():
|
|
38 |
</style>"""
|
39 |
)
|
40 |
logo_path = os.path.join(os.getcwd(), 'fashionlookl1_2.png')
|
41 |
-
gr.Markdown("<img src=logo_path class='logo' alt='Logo'>")
|
42 |
gr.Markdown("<h1>FashionLook - Segment Clothes</h1>")
|
43 |
gr.Markdown("<h3 style='text-align: center;'>" "Upload an image and let our model detect and segment clothes such as shirts, pants, skirts...""</h3>")
|
44 |
with gr.Row():
|
|
|
13 |
gr.HTML(
|
14 |
"""<style>
|
15 |
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&family=Roboto:wght@400&display=swap');
|
16 |
+
body { background-color: #2c2c2c; font-family: 'Roboto', sans-serif; }
|
17 |
+
h1 { font-family: 'Poppins', sans-serif; color: #ff9800; text-align: center; font-size: 2.5em; margin-bottom: 20px; }
|
18 |
+
h3 { font-family: 'Roboto', sans-serif; color: #dddddd; text-align: center; margin-bottom: 10px; }
|
|
|
19 |
.segment-btn {
|
20 |
+
background-color: #ff9800;
|
21 |
border-radius: 8px;
|
22 |
padding: 10px 20px;
|
23 |
color: white;
|
24 |
transition: background-color 0.3s ease, transform 0.2s ease;
|
25 |
}
|
26 |
.segment-btn:hover {
|
27 |
+
background-color: #e67e00;
|
28 |
transform: scale(1.05);
|
29 |
}
|
30 |
.logo {
|
|
|
37 |
</style>"""
|
38 |
)
|
39 |
logo_path = os.path.join(os.getcwd(), 'fashionlookl1_2.png')
|
40 |
+
gr.Markdown("<img src='{logo_path}'' class='logo' alt='Logo'>")
|
41 |
gr.Markdown("<h1>FashionLook - Segment Clothes</h1>")
|
42 |
gr.Markdown("<h3 style='text-align: center;'>" "Upload an image and let our model detect and segment clothes such as shirts, pants, skirts...""</h3>")
|
43 |
with gr.Row():
|