Spaces:
Running
Running
add none
Browse files
app.py
CHANGED
|
@@ -56,7 +56,8 @@ def process_images(image,no_mesh_draw=False,square_shape=False,progress=gr.Progr
|
|
| 56 |
jsons[label] = boxes[index-1]
|
| 57 |
print(index)
|
| 58 |
index+=1
|
| 59 |
-
|
|
|
|
| 60 |
#print(annotation_boxes)
|
| 61 |
formatted_json = json.dumps(jsons, indent=1)
|
| 62 |
#return image
|
|
@@ -109,7 +110,7 @@ with gr.Blocks(css=css, elem_id="demo-container") as demo:
|
|
| 109 |
image = gr.Image(height=800,sources=['upload','clipboard'],image_mode='RGB',elem_id="image_upload", type="pil", label="Upload")
|
| 110 |
with gr.Row(elem_id="prompt-container", equal_height=False):
|
| 111 |
with gr.Row():
|
| 112 |
-
btn = gr.Button("Face Detect", elem_id="run_button")
|
| 113 |
|
| 114 |
with gr.Accordion(label="Advanced Settings", open=False):
|
| 115 |
with gr.Row( equal_height=True):
|
|
|
|
| 56 |
jsons[label] = boxes[index-1]
|
| 57 |
print(index)
|
| 58 |
index+=1
|
| 59 |
+
|
| 60 |
+
annotation_boxes.append(([0,0,1,1],"None"))
|
| 61 |
#print(annotation_boxes)
|
| 62 |
formatted_json = json.dumps(jsons, indent=1)
|
| 63 |
#return image
|
|
|
|
| 110 |
image = gr.Image(height=800,sources=['upload','clipboard'],image_mode='RGB',elem_id="image_upload", type="pil", label="Upload")
|
| 111 |
with gr.Row(elem_id="prompt-container", equal_height=False):
|
| 112 |
with gr.Row():
|
| 113 |
+
btn = gr.Button("Face Detect", elem_id="run_button",variant="primary")
|
| 114 |
|
| 115 |
with gr.Accordion(label="Advanced Settings", open=False):
|
| 116 |
with gr.Row( equal_height=True):
|