aboutsummaryrefslogtreecommitdiffstats
path: root/web/main.py
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2014-07-29 18:50:09 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2014-07-29 18:50:09 -0400
commit2ab5da4bfdce9f41e93a27082900da6ea72db6ed (patch)
treebdbe27d77fea5f77e0b6a8934ab01391f03a8057 /web/main.py
parentdfcd65c8f10aa94f19fe40940565681ab9a73e44 (diff)
downloadocr-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.py4
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):