Skip to content

Commit 9ef0630

Browse files
Changes in response to #18 (review) and Tree tab name change
1 parent 41ae887 commit 9ef0630

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
FROM python:3.6-slim-buster
22

3+
# Additional required files for openCV
4+
RUN apt-get update
5+
RUN apt-get install ffmpeg libsm6 libxext6 -y
6+
37
WORKDIR ./app
48

59
COPY ./requirements.txt .
610

711
RUN pip install -r requirements.txt
812

9-
# Additional required files for openCV
10-
RUN apt-get update
11-
RUN apt-get install ffmpeg libsm6 libxext6 -y
12-
1313
COPY ./ ./
1414

15-
CMD ["python", "routes.py"]
15+
CMD ["python", "app.py"]

routes.py renamed to app.py

File renamed without changes.

templates/interactive.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
treeLoaded = false;
2424

2525
// Lazy load JSTree element (for very large files)
26-
$(".nav-item.Interactive_MMIF").click(function() {
26+
$(".nav-item.Tree").click(function() {
2727
if (treeLoaded)
2828
return
2929
treeLoaded = true;

utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def prep_annotations(mmif):
130130
tabs = [("Info", "<pre>" + create_info(mmif) + "</pre>"),
131131
("MMIF", "<pre>" + mmif.serialize(pretty=True) + "</pre>"),
132132
("Annotations", create_annotation_tables(mmif)),
133-
("Interactive_MMIF", render_interactive_mmif(mmif))]
133+
("Tree", render_interactive_mmif(mmif))]
134134
# TODO: since this uses the same tab-name this will only show the same
135135
# stuff; it does a loop but for now we assume there is just one file with
136136
# alignments (generated by Kaldi)

0 commit comments

Comments
 (0)