Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -46,6 +46,8 @@ examples = [
|
|
46 |
['example1.png'],
|
47 |
['example2.png'],
|
48 |
['example3.png'],
|
|
|
|
|
49 |
]
|
50 |
|
51 |
css = """
|
@@ -57,6 +59,19 @@ body {
|
|
57 |
background-color: rgb(17, 24, 39) !important;
|
58 |
border: none !important;
|
59 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
footer {display: none !important;}
|
61 |
"""
|
62 |
|
@@ -66,7 +81,7 @@ with gr.Blocks(css=css) as demo:
|
|
66 |
with gr.Row():
|
67 |
with gr.Column(scale=2): # Adjust scale for proper sizing
|
68 |
image_input = gr.Image(type="numpy", label="Upload Image", width=width, height=height)
|
69 |
-
gr.Examples(examples=examples, inputs=image_input, examples_per_page=
|
70 |
process_button = gr.Button("Nude!")
|
71 |
|
72 |
def update_status(img):
|
|
|
46 |
['example1.png'],
|
47 |
['example2.png'],
|
48 |
['example3.png'],
|
49 |
+
['example5.webp'],
|
50 |
+
['example6.webp'],
|
51 |
]
|
52 |
|
53 |
css = """
|
|
|
59 |
background-color: rgb(17, 24, 39) !important;
|
60 |
border: none !important;
|
61 |
}
|
62 |
+
#example_img .hide-container{
|
63 |
+
height:80px;
|
64 |
+
width:100%;
|
65 |
+
transition: transform 0.5s ease;
|
66 |
+
}
|
67 |
+
#example_img{
|
68 |
+
width:100%;
|
69 |
+
}
|
70 |
+
#example_img img{
|
71 |
+
height:80px;
|
72 |
+
width:auto;
|
73 |
+
transition: transform 0.5s ease;
|
74 |
+
}
|
75 |
footer {display: none !important;}
|
76 |
"""
|
77 |
|
|
|
81 |
with gr.Row():
|
82 |
with gr.Column(scale=2): # Adjust scale for proper sizing
|
83 |
image_input = gr.Image(type="numpy", label="Upload Image", width=width, height=height)
|
84 |
+
gr.Examples(examples=examples, inputs=image_input, examples_per_page=5, elem_id="example_img")
|
85 |
process_button = gr.Button("Nude!")
|
86 |
|
87 |
def update_status(img):
|