dmmiller612 / lecture-summarizer

Lecture summarization with BERT

Home Page:https://arxiv.org/abs/1906.04165

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Syntax Error server.py

makamkkumar opened this issue · comments

$ make docker-build-run
docker build -t local-summary -f Dockerfile ./
Sending build context to Docker daemon 176.1kB
Step 1/10 : FROM ubuntu:16.04
---> 657d80a6401d
Step 2/10 : RUN apt-get update && apt-get install -y sudo build-essential curl libcurl4-openssl-dev libssl-dev wget python3-dev python3-pip libxrender-dev libxext6 libsm6 openssl
---> Using cache
---> c06c359ea431
Step 3/10 : RUN mkdir -p /opt/service
---> Using cache
---> 7b2438beb164
Step 4/10 : RUN mkdir -p /opt/service/summarizer
---> Using cache
---> 56cec71213c9
Step 5/10 : COPY summarizer /opt/service/summarizer
---> Using cache
---> 56f29661dbe9
Step 6/10 : COPY server.py /opt/service
---> Using cache
---> 9caa6122383f
Step 7/10 : COPY requirements.txt /opt/service
---> Using cache
---> 4cf3dd2c5ae2
Step 8/10 : WORKDIR /opt/service
---> Using cache
---> 8d7f02cfc081
Step 9/10 : RUN pip3 install -r requirements.txt
---> Using cache
---> 8ae60c217e59
Step 10/10 : CMD /bin/bash -c "python3 server.py"
---> Using cache
---> 3f5be93d9373
Successfully built 3f5be93d9373
Successfully tagged local-summary:latest
docker run --rm -it -p 5000:5000 local-summary:latest
File "server.py", line 81
lecture: int = lectureid
^
SyntaxError: invalid syntax
Makefile:12: recipe for target 'docker-build-run' failed
make: *** [docker-build-run] Error 1

I'll take a look