@ -314,8 +314,7 @@ def layout(image, out, overwrite, dir_in, model, save_images, save_layout, save_
if dir_in:
eynollah.run(dir_in=dir_in, overwrite=overwrite)
else:
pcgts = eynollah.run(image_filename=image)
eynollah.writer.write_pagexml(pcgts)
eynollah.run(image_filename=image)
@main.command()
@ -4223,10 +4223,7 @@ class Eynollah:
pcgts = self.run_single()
self.logger.info("Job done in %.1fs", time.time() - t0)
#print("Job done in %.1fs" % (time.time() - t0))
self.writer.write_pagexml(pcgts)
return pcgts
self.logger.info("All jobs done in %.1fs", time.time() - t0_tot)