Skip to content

Commit 6ffcdc9

Browse files
committed
return label_coordinates
1 parent b8b952c commit 6ffcdc9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gradio_demo.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ def process(
7373
image = Image.open(io.BytesIO(base64.b64decode(dino_labled_img)))
7474

7575
print('finish processing')
76-
return image, str(parsed_content_list), str(label_coordinates)
76+
output_dict = {
77+
"parsed_content_list": parsed_content_list,
78+
"label_coordinates": label_coordinates,
79+
}
80+
return image, str(output_dict)
7781

7882

7983
with gr.Blocks() as demo:

0 commit comments

Comments
 (0)