Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -63,7 +63,7 @@ def render_annotations(annotations, image_dir):
|
|
| 63 |
surface = canvas.getSurface()
|
| 64 |
# image_buffer = surface.makeImageSnapshot().encode(skia.kPNG_Codec)
|
| 65 |
# annotated_images.append((image_buffer, f"Page {page_index}"))
|
| 66 |
-
surface.makeImageSnapshot().save(output_path
|
| 67 |
annotated_images.append(output_path)
|
| 68 |
|
| 69 |
return annotated_images
|
|
|
|
| 63 |
surface = canvas.getSurface()
|
| 64 |
# image_buffer = surface.makeImageSnapshot().encode(skia.kPNG_Codec)
|
| 65 |
# annotated_images.append((image_buffer, f"Page {page_index}"))
|
| 66 |
+
surface.makeImageSnapshot().save(output_path)
|
| 67 |
annotated_images.append(output_path)
|
| 68 |
|
| 69 |
return annotated_images
|