Spaces:
Sleeping
Sleeping
StephaneBah
commited on
Commit
•
3d3986f
1
Parent(s):
f6194a4
Update app.py
Browse files
app.py
CHANGED
@@ -16,6 +16,7 @@ def create_interface():
|
|
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;
|
@@ -36,18 +37,18 @@ def create_interface():
|
|
36 |
}
|
37 |
</style>"""
|
38 |
)
|
39 |
-
logo_path = os.path.join(os.getcwd(), 'fashionlookl1_2.png')
|
40 |
-
gr.Markdown(f"<img src='
|
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():
|
44 |
with gr.Column(scale=1):
|
45 |
-
gr.Markdown("<
|
46 |
image_input = gr.Image(type='pil', label="Upload Image")
|
47 |
with gr.Row():
|
48 |
segment_button = gr.Button("Run Segmentation", elem_id="segment-btn")
|
49 |
with gr.Column(scale=1):
|
50 |
-
gr.Markdown("<
|
51 |
segmented_image_output = gr.Image(type="pil", label="Segmented Image", interactive=False)
|
52 |
|
53 |
# Actions liées aux inputs/outputs
|
|
|
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 |
+
h5 { font-family: 'Roboto', sans-serif; color: #dddddd; text-align: center; margin-bottom: 10px; }
|
20 |
.segment-btn {
|
21 |
background-color: #ff9800;
|
22 |
border-radius: 8px;
|
|
|
37 |
}
|
38 |
</style>"""
|
39 |
)
|
40 |
+
#logo_path = os.path.join(os.getcwd(), 'fashionlookl1_2.png')
|
41 |
+
gr.Markdown(f"<img src='fashionlookl1_2.png' 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():
|
45 |
with gr.Column(scale=1):
|
46 |
+
gr.Markdown("<h5>Upload your image</h5>")
|
47 |
image_input = gr.Image(type='pil', label="Upload Image")
|
48 |
with gr.Row():
|
49 |
segment_button = gr.Button("Run Segmentation", elem_id="segment-btn")
|
50 |
with gr.Column(scale=1):
|
51 |
+
gr.Markdown("<h5>Segmented Image with Overlay</h5>")
|
52 |
segmented_image_output = gr.Image(type="pil", label="Segmented Image", interactive=False)
|
53 |
|
54 |
# Actions liées aux inputs/outputs
|