Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklambourne committed Aug 28, 2021
1 parent 53630af commit ec5d5ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -180,10 +180,8 @@ RUN pwd
RUN git clone --depth=1 https://github.com/CoEDL/elpis.git

WORKDIR /elpis
RUN python -m venv /venv
ENV PATH="/venv/bin:$PATH"
RUN pip install poetry \
&& poetry env use /venv/bin/python \
&& poetry env use /venv/bin/python3 \
&& poetry run pip install --upgrade pip \
&& poetry config virtualenvs.create false --local \
&& poetry install
Expand All @@ -210,6 +208,8 @@ RUN echo "export FLASK_APP=elpis" >> ~/.zshrc
RUN echo "export LC_ALL=C.UTF-8" >> ~/.zshrc
RUN echo "export LANG=C.UTF-8" >> ~/.zshrc
RUN echo "export PATH=$PATH:/venv/bin:/kaldi/src/bin/" >> ~/.zshrc
WORKDIR /elpis
RUN echo "export POETRY_PATH=$(poetry env info -p)" >> ~/.zshrc
RUN echo "alias run=\"poetry run flask run --host=0.0.0.0 --port=5000\"" >> ~/.zshrc
RUN cat ~/.zshrc >> ~/.bashrc

Expand Down
4 changes: 2 additions & 2 deletions elpis/engines/kaldi/inference/gmm-decode/7_ctm_textgrid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

export PATH=$PATH:/kaldi/src/online2bin

# Activate Python 3.6.3 virtual environment
# Activate Python 3.8.2 virtual environment
source /venv/bin/activate

# Manipulate the wav.scp file in the first (and only) split
Expand All @@ -24,7 +24,7 @@ echo "${recid} ${audio}" > ./data/infer/split1/1/wav.scp

echo "==== Converting CTM to Textgrid ===="
# python /kaldi-helpers/kaldi_helpers/output_scripts/ctm_to_textgrid.py \
python /elpis/elpis/engines/common/output/ctm_to_textgrid.py \
"{POETRY_PATH}/bin/python" /elpis/elpis/engines/common/output/ctm_to_textgrid.py \
--ctm data/infer/align-words-best-wordkeys.ctm \
--wav data/infer/split1/1/wav.scp \
--seg data/infer/split1/1/segments \
Expand Down

0 comments on commit ec5d5ec

Please sign in to comment.