diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2014-07-29 18:50:09 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2014-07-29 18:50:09 -0400 |
| commit | 2ab5da4bfdce9f41e93a27082900da6ea72db6ed (patch) | |
| tree | bdbe27d77fea5f77e0b6a8934ab01391f03a8057 /web/main.py | |
| parent | dfcd65c8f10aa94f19fe40940565681ab9a73e44 (diff) | |
| download | ocr-layer-curation-2ab5da4bfdce9f41e93a27082900da6ea72db6ed.tar.gz | |
Webapp now show three columns
image, original text and corrected text. The highlighting is functional
as well.
Diffstat (limited to 'web/main.py')
| -rw-r--r-- | web/main.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/main.py b/web/main.py index 206eb86..b5174d8 100644 --- a/web/main.py +++ b/web/main.py @@ -9,9 +9,9 @@ import io class MainHandler(RequestHandler): def get(self, page_number): - areas, words = utils.gen_html(self.settings["book"], page_number) + orig_coords, orig_words, corr_coords_index, corr_words = utils.gen_html(self.settings["book"], page_number) self.render("index.html", page_number=page_number, - areas=areas, words=words) + orig_coords=orig_coords, orig_words=orig_words, corr_words=corr_words, corr_coords_index=corr_coords_index) class ImageHandler(RequestHandler): |
