Skip to content

Commit

Permalink
Merge pull request #4 from praekeltfoundation/initial-commits
Browse files Browse the repository at this point in the history
Update dockerfile
  • Loading branch information
erikh360 authored Nov 25, 2024
2 parents 716c5bb + 673fe2e commit 682dbdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ COPY src src/

EXPOSE 5000

CMD ["gunicorn", "application:app", "-b", "0.0.0.0:5000", "-w", "4"]
WORKDIR /src

CMD ["/.venv/bin/gunicorn", "application:app", "-b", "0.0.0.0:5000", "-w", "4"]
4 changes: 2 additions & 2 deletions src/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

version = importlib.metadata.version("mc-intent-classifier")


DATA_PATH = Path("src/data")
dirname = os.path.dirname(__file__)
DATA_PATH = Path(f"{dirname}/data")
OUTPUT_FILE_PATH = DATA_PATH / "new_test_intent_embeddings.json"

app = Flask(__name__)
Expand Down

0 comments on commit 682dbdb

Please sign in to comment.