Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -82,6 +82,8 @@ examples = [
|
|
82 |
[load_image_from_file('example3.png')],
|
83 |
[load_image_from_file('example5.webp')],
|
84 |
[load_image_from_file('example6.webp')],
|
|
|
|
|
85 |
]
|
86 |
|
87 |
css = """
|
@@ -139,9 +141,10 @@ with gr.Blocks(css=css, head=js) as demo:
|
|
139 |
with gr.Row():
|
140 |
with gr.Column(min_width=240,scale=3): # Adjust scale for proper sizing
|
141 |
image_input = gr.Image(type="numpy", label="Upload Image", height=height)
|
|
|
142 |
with gr.Column(scale=1,min_width=50):
|
143 |
gr.Examples(examples=examples, inputs=image_input, examples_per_page=10, elem_id="example_img")
|
144 |
-
|
145 |
|
146 |
def update_status(img):
|
147 |
processed_img = inference(img)
|
|
|
82 |
[load_image_from_file('example3.png')],
|
83 |
[load_image_from_file('example5.webp')],
|
84 |
[load_image_from_file('example6.webp')],
|
85 |
+
[load_image_from_file('example7.jpeg')],
|
86 |
+
[load_image_from_file('example8.webp')],
|
87 |
]
|
88 |
|
89 |
css = """
|
|
|
141 |
with gr.Row():
|
142 |
with gr.Column(min_width=240,scale=3): # Adjust scale for proper sizing
|
143 |
image_input = gr.Image(type="numpy", label="Upload Image", height=height)
|
144 |
+
process_button = gr.Button("Nude!",size="sm")
|
145 |
with gr.Column(scale=1,min_width=50):
|
146 |
gr.Examples(examples=examples, inputs=image_input, examples_per_page=10, elem_id="example_img")
|
147 |
+
|
148 |
|
149 |
def update_status(img):
|
150 |
processed_img = inference(img)
|