diff --git a/Dockerfile b/Dockerfile index 85a7139..b8779f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,8 +22,7 @@ RUN pip install --upgrade pip && \ make && \ make install -RUN git clone https://github.com/MycroftAI/lingua-franca.git -RUN pip install lingua-franca/ +RUN pip install git+https://github.com/MycroftAI/lingua-franca.git@5bfd75fe5996fd364102a0eec3f714c9ddc9275c WORKDIR /app COPY ./requirements.txt /app diff --git a/server/server.py b/server/server.py index c4dda85..ecd5667 100644 --- a/server/server.py +++ b/server/server.py @@ -330,7 +330,7 @@ async def details(request: Request): def worker(sentence, speaker_id, model, use_aliases, new_speaker_ids): def substitute_time(sentence): # Regular expression to find time pattern (HH:MM) - time_pattern = re.compile(r'(\d{1,2}):(\d{2})') + time_pattern = re.compile(r'((?<=\s)\d{1,2}):(\d{2}(?=\s))') # Find all matches of time pattern in the sentence matches = re.findall(time_pattern, sentence)